Class SillListViewMenuFlyoutItem
- Namespace
- WindowSill.API
- Assembly
- WindowSill.API.dll
Represents a list view item that displays a context menu flyout when its action button is clicked.
[WinRTRuntimeClassName("Microsoft.UI.Xaml.IUIElementOverrides")]
[WinRTExposedType(typeof(WindowSill_API_PreviewFlyoutWinRTTypeDetails))]
[Bindable]
public class SillListViewMenuFlyoutItem : SillListViewItem, IEquatable<DependencyObject>, IAnimationObject, IVisualElement, IVisualElement2, IEquatable<UIElement>, IEquatable<FrameworkElement>, IEquatable<Control>, IWinRTObject, IUnmanagedVirtualMethodTableProvider, IDynamicInterfaceCastable, IEquatable<ContentControl>
- Inheritance
-
SillListViewMenuFlyoutItem
- Implements
-
IWinRTObject
- Inherited Members
- Extension Methods
Constructors
SillListViewMenuFlyoutItem()
Initializes a new instance of the SillListViewMenuFlyoutItem class with no content or menu flyout.
public SillListViewMenuFlyoutItem()
SillListViewMenuFlyoutItem(IconElement, object?, MenuFlyout)
Initializes a new instance of the SillListViewMenuFlyoutItem class with an icon element and a menu flyout.
public SillListViewMenuFlyoutItem(IconElement icon, object? previewFlyoutContent, MenuFlyout menuFlyout)
Parameters
iconIconElementThe icon element to display as the item's content.
previewFlyoutContentobjectOptional content to display in a preview flyout when hovering over the item.
menuFlyoutMenuFlyoutThe menu flyout to display when the item is activated.
SillListViewMenuFlyoutItem(FrameworkElement, object?, MenuFlyout)
Initializes a new instance of the SillListViewMenuFlyoutItem class with a framework element and a menu flyout.
public SillListViewMenuFlyoutItem(FrameworkElement content, object? previewFlyoutContent, MenuFlyout menuFlyout)
Parameters
contentFrameworkElementThe framework element to display as the item's content.
previewFlyoutContentobjectOptional content to display in a preview flyout when hovering over the item.
menuFlyoutMenuFlyoutThe menu flyout to display when the item is activated.
SillListViewMenuFlyoutItem(ImageSource, object?, MenuFlyout)
Initializes a new instance of the SillListViewMenuFlyoutItem class with an image source and a menu flyout.
public SillListViewMenuFlyoutItem(ImageSource iconSource, object? previewFlyoutContent, MenuFlyout menuFlyout)
Parameters
iconSourceImageSourceThe image source to display as the item's content.
previewFlyoutContentobjectOptional content to display in a preview flyout when hovering over the item.
menuFlyoutMenuFlyoutThe menu flyout to display when the item is activated.
SillListViewMenuFlyoutItem(char, object?, MenuFlyout)
Initializes a new instance of the SillListViewMenuFlyoutItem class with a glyph character and a menu flyout.
public SillListViewMenuFlyoutItem(char glyph, object? previewFlyoutContent, MenuFlyout menuFlyout)
Parameters
glyphcharThe glyph character to display as the item's content.
previewFlyoutContentobjectOptional content to display in a preview flyout when hovering over the item.
menuFlyoutMenuFlyoutThe menu flyout to display when the item is activated.
SillListViewMenuFlyoutItem(string, object?, MenuFlyout)
Initializes a new instance of the SillListViewMenuFlyoutItem class with text content and a menu flyout.
public SillListViewMenuFlyoutItem(string text, object? previewFlyoutContent, MenuFlyout menuFlyout)
Parameters
textstringThe text to display as the item's content.
previewFlyoutContentobjectOptional content to display in a preview flyout when hovering over the item.
menuFlyoutMenuFlyoutThe menu flyout to display when the item is activated.
Fields
MenuFlyoutProperty
Identifies the MenuFlyout dependency property.
public static readonly DependencyProperty MenuFlyoutProperty
Field Value
Properties
MenuFlyout
Gets or sets the menu flyout that will be displayed when this item is activated. The flyout's placement is automatically determined based on the WindowSill's screen position to ensure optimal visibility and user experience.
public MenuFlyout? MenuFlyout { get; set; }
Property Value
Methods
OnApplyTemplate()
protected override void OnApplyTemplate()