menu

Xamarin.Forms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ExpandMode - Xamarin.Forms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class ExpandMode

    Defines constants that describes the possible expand modes for an AccordionItem.

    Inheritance
    System.Object
    ExpandMode
    Namespace: Syncfusion.XForms.Accordion
    Assembly: Syncfusion.Expander.XForms.dll
    Syntax
    public sealed class ExpandMode : Enum
    Remarks

    The constants specifies the behavior for the AccordionItem's expansion and collapsing in an SfAccordion.

    Fields

    Multiple

    It enables to expand more than one Accordion item at a time. At least one item must be always expanded.

    Declaration
    public const ExpandMode Multiple
    Field Value
    Type
    ExpandMode

    MultipleOrNone

    It enables to expand more than one Accordion item at a time. It is possible to collapse all the items in an SfAccordion.

    Declaration
    public const ExpandMode MultipleOrNone
    Field Value
    Type
    ExpandMode

    Single

    It enables to expand only one Accordion item at a time. If you expand any new item, the previously expanded one is collapsed and new item changed to expanded state. Atleast one item must be in expanded state and the expanded item cannot be collapsed with ExpandMode is Single.

    Declaration
    public const ExpandMode Single
    Field Value
    Type
    ExpandMode

    SingleOrNone

    It enables to expand only one Accordion item at a time. If you expand any new item, the previously expanded one is collapsed and new item changed to expanded state. Unlike Single, it is possible to collapse the expanded item and keep all the items in an SfAccordion in collapsed state.

    Declaration
    public const ExpandMode SingleOrNone
    Field Value
    Type
    ExpandMode
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved