Class MenuFlyout
public class MenuFlyout : PopupFlyoutBase, INotifyPropertyChanged, IPopupHostProvider
- Inheritance
-
MenuFlyout
- Implements
- Inherited Members
Constructors
MenuFlyout()
public MenuFlyout()
Fields
FlyoutPresenterThemeProperty
Defines the FlyoutPresenterTheme property.
public static readonly StyledProperty<ControlTheme?> FlyoutPresenterThemeProperty
Field Value
ItemContainerThemeProperty
Defines the ItemContainerTheme property.
public static readonly StyledProperty<ControlTheme?> ItemContainerThemeProperty
Field Value
ItemTemplateProperty
Defines the ItemTemplate property
public static readonly StyledProperty<IDataTemplate?> ItemTemplateProperty
Field Value
ItemsSourceProperty
Defines the ItemsSource property
public static readonly StyledProperty<IEnumerable?> ItemsSourceProperty
Field Value
Properties
FlyoutPresenterClasses
public Classes FlyoutPresenterClasses { get; }
Property Value
FlyoutPresenterTheme
Gets or sets the ControlTheme that is applied to the container element generated for the flyout presenter.
public ControlTheme? FlyoutPresenterTheme { get; set; }
Property Value
ItemContainerTheme
Gets or sets the ControlTheme that is applied to the container element generated for each item.
public ControlTheme? ItemContainerTheme { get; set; }
Property Value
ItemTemplate
Gets or sets the template used for the items
public IDataTemplate? ItemTemplate { get; set; }
Property Value
Items
[Content]
public ItemCollection Items { get; }
Property Value
ItemsSource
Gets or sets the items of the MenuFlyout
public IEnumerable? ItemsSource { get; set; }
Property Value
Methods
CreatePresenter()
Used to create the content the Flyout displays
protected override Control CreatePresenter()
Returns
OnOpening(CancelEventArgs)
protected override void OnOpening(CancelEventArgs args)
Parameters
args
CancelEventArgs
OnPropertyChanged(AvaloniaPropertyChangedEventArgs)
Called when a avalonia property changes on the object.
protected override void OnPropertyChanged(AvaloniaPropertyChangedEventArgs change)
Parameters
change
AvaloniaPropertyChangedEventArgsThe property change details.