blazor-devexpress-dot-blazor-dot-dxaccordionitem-6580cca8.md
Specifies whether the item is expanded.
Namespace : DevExpress.Blazor
Assembly : DevExpress.Blazor.v25.2.dll
NuGet Package : DevExpress.Blazor
[DefaultValue(false)]
[Parameter]
public bool Expanded { get; set; }
| Type | Default | Description |
|---|---|---|
| Boolean | false |
true if the item is expanded; otherwise, false.
|
Use the Expanded property to expand or collapse the item. Handle the ExpandedChanged to react to state changes.
<DxAccordion>
<Items>
<DxAccordionItem Text="Grid" />
<DxAccordionItem Text="Navigation and Layout" Expanded="true">
<Items>
<DxAccordionItem Text="Accordion" />
<DxAccordionItem Text="Stack Layout" />
</Items>
</DxAccordionItem>
<DxAccordionItem Text="Data Editors" />
<DxAccordionItem Text="Scheduler" />
</Items>
</DxAccordion>
See Also