Skip to main content Link Search Menu Expand Document (external link)

SettingsExpander

Namespace: FluentAvalonia.UI.Controls

Control used to display or group settings options within an app, like in the Windows 11 Settings app

C#

public class SettingsExpander : HeaderedItemsControl


Xaml

<ui:SettingsExpander />


Required Template Parts

Name Control Type
Expander Expander
ContentHost SettingsExpanderItem


Pseudoclasses

:allowClick, :empty, :empty, :singleitem, :disabled, :focus, :focus-visible, :focus-within, :pointerover



Examples and Usage Notes

None yet.


API

Note: Inherited members are not shown


Properties

ActionIconSource Gets or sets the Action IconSource when `FluentAvalonia.UI.Controls.SettingsExpander.IsClickEnabled` is true
ActionIconSourceProperty Defines the `FluentAvalonia.UI.Controls.SettingsExpander.ActionIconSource` property
Command Gets or sets the Command that is invoked upon clicking the item
CommandParameter Gets or sets the command parameter
CommandParameterProperty Defines the `FluentAvalonia.UI.Controls.SettingsExpander.CommandParameter` property
CommandProperty Defines the `FluentAvalonia.UI.Controls.SettingsExpander.Command` property
Description Gets or sets the description text
DescriptionProperty Defines the `FluentAvalonia.UI.Controls.SettingsExpander.Description` property
Footer Gets or sets the Footer content for the SettingsExpander
FooterProperty Defines the `FluentAvalonia.UI.Controls.SettingsExpander.Footer` property
FooterTemplate Gets or sets the Footer template for the SettingsExpander
FooterTemplateProperty Defines the `FluentAvalonia.UI.Controls.SettingsExpander.FooterTemplate` property
IconSource Gets or sets the IconSource for the SettingsExpander
IconSourceProperty Defines the `FluentAvalonia.UI.Controls.SettingsExpander.IconSource` property
IsClickEnabled Gets or sets whether the item is clickable which can be used for navigation within an app
IsClickEnabledProperty Defines the `FluentAvalonia.UI.Controls.SettingsExpander.IsClickEnabled` property
IsExpanded Gets or sets whether the SettingsExpander is currently expanded
IsExpandedProperty Defines the `FluentAvalonia.UI.Controls.SettingsExpander.IsExpanded` property


Events

Click Event raised when the SettingsExpander is clicked and IsClickEnabled = true
ClickEvent Defines the `FluentAvalonia.UI.Controls.SettingsExpander.Click` event


Methods

OnClick() Invoked when the SettingsExpander is clicked when IsClickEnabled = true