MenuFlyoutSubItem
Namespace: FluentAvalonia.UI.Controls
Represents a menu item that displays a sub-menu in a FluentAvalonia.UI.Controls.FAMenuFlyout control.
C#
public class MenuFlyoutSubItem : MenuFlyoutItemBase
Xaml
<ui:MenuFlyoutSubItem />
Required Template Parts
None :)
Pseudoclasses
:submenuopen, :disabled, :focus, :focus-visible, :focus-within, :pointerover
Examples and Usage Notes
None yet.
API
Note: Inherited members are not shown
Properties
| IconSource | Gets or sets the graphic content of the menu flyout subitem. |
| IconSourceProperty | Defines the `Icon` property |
| ItemContainerTheme | Gets or sets the `Avalonia.Styling.ControlTheme` to apply for the items |
| ItemContainerThemeProperty | Defines the `FluentAvalonia.UI.Controls.MenuFlyoutSubItem.ItemContainerTheme` property |
| Items | Gets or sets the collection used to generate the content of the sub-menu. |
| ItemsProperty | Defines the `FluentAvalonia.UI.Controls.MenuFlyoutSubItem.Items` property |
| ItemTemplateProperty | Defines the `FluentAvalonia.UI.Controls.MenuFlyoutSubItem.ItemTemplate` property |
| TemplateSettings | Gets the template settings for this MenuFlyoutItem |
| TemplateSettingsProperty | Defines the `FluentAvalonia.UI.Controls.MenuFlyoutSubItem.TemplateSettings` property |
| Text | Gets or sets the text content of a MenuFlyoutSubItem. |
| TextProperty | Defines the `FluentAvalonia.UI.Controls.MenuFlyoutSubItem.Text` property |
Events
Methods
| Open() | Opens the SubMenu |
| Close() | Closes the SubMenu |