Table of Contents

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

icon IconElement

The icon element to display as the item's content.

previewFlyoutContent object

Optional content to display in a preview flyout when hovering over the item.

menuFlyout MenuFlyout

The 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

content FrameworkElement

The framework element to display as the item's content.

previewFlyoutContent object

Optional content to display in a preview flyout when hovering over the item.

menuFlyout MenuFlyout

The 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

iconSource ImageSource

The image source to display as the item's content.

previewFlyoutContent object

Optional content to display in a preview flyout when hovering over the item.

menuFlyout MenuFlyout

The 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

glyph char

The glyph character to display as the item's content.

previewFlyoutContent object

Optional content to display in a preview flyout when hovering over the item.

menuFlyout MenuFlyout

The 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

text string

The text to display as the item's content.

previewFlyoutContent object

Optional content to display in a preview flyout when hovering over the item.

menuFlyout MenuFlyout

The menu flyout to display when the item is activated.

Fields

MenuFlyoutProperty

Identifies the MenuFlyout dependency property.

public static readonly DependencyProperty MenuFlyoutProperty

Field Value

DependencyProperty

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

MenuFlyout

Methods

OnApplyTemplate()

protected override void OnApplyTemplate()