Skip to content

AccordionSectionActionContext ​

Namespace: Hex1b.Widgets

Assembly: Hex1b.dll

Provides methods to programmatically control the expand/collapse state of an accordion section. Accessible from icon click handlers via the accordion node.

csharp
public sealed class AccordionSectionActionContext

Inheritance ​

Object → AccordionSectionActionContext

Properties ​

IsExpanded ​

Gets whether this section is currently expanded.

Returns: Boolean

csharp
public bool IsExpanded { get; }

Methods ​

Collapse() ​

Collapses this section.

csharp
public void Collapse()

Expand() ​

Expands this section.

csharp
public void Expand()

Toggle() ​

Toggles the expand/collapse state of this section.

csharp
public void Toggle()

Released under the MIT License.