Edit

Share via


Menu Class

Definition

Caution

This control will be removed in a future major release. Please use the MenuBar control from the WinUI Library instead.

Menu Control defines a menu of choices for users to invoke.

[System.Obsolete("This control will be removed in a future major release. Please use the MenuBar control from the WinUI Library instead.")]
public class Menu : Windows.UI.Xaml.Controls.ItemsControl
[<System.Obsolete("This control will be removed in a future major release. Please use the MenuBar control from the WinUI Library instead.")>]
type Menu = class
    inherit ItemsControl
Public Class Menu
Inherits ItemsControl
Inheritance
Windows.UI.Xaml.Controls.ItemsControl
Menu
Attributes

Constructors

Menu()

Initializes a new instance of the Menu class.

Fields

AllowTooltipProperty

Gets or sets a value indicating whether to allow tooltip on alt or not

InputGestureTextProperty

Sets the text describing an input gesture that will call the command tied to the specified item.

MenuFlyoutStyleProperty

Identifies the MenuFlyoutStyle dependency property.

OrientationProperty

Identifies the Orientation dependency property.

TooltipPlacementProperty

Identifies the TooltipPlacement dependency property.

TooltipStyleProperty

Identifies the TooltipStyle dependency property.

Properties

IsOpened

Gets a value indicating whether the menu is opened or not

MenuFlyoutStyle

Gets or sets the menu style for MenuItem

Orientation

Gets or sets the orientation of the Menu, Horizontal or vertical means that child controls will be added horizontally until the width of the panel can't fit more control then a new row is added to fit new horizontal added child controls, vertical means that child will be added vertically until the height of the panel is received then a new column is added

SelectedMenuItem

Gets the current selected menu header item

TooltipPlacement

Gets or sets the tooltip placement on menu

TooltipStyle

Gets or sets the tooltip styles for menu

Attached Properties

AllowTooltip
InputGestureText

Methods

GetAllowTooltip(Menu)

Gets AllowTooltip attached property

GetContainerForItemOverride() Windows.UI.Xaml.Controls.ItemsControl.GetContainerForItemOverride
GetInputGestureText(FrameworkElement)

Gets InputGestureText attached property

IsItemItsOwnContainerOverride(Object) Windows.UI.Xaml.Controls.ItemsControl.IsItemItsOwnContainerOverride(System.Object)
OnApplyTemplate() Windows.UI.Xaml.Controls.ItemsControl.OnApplyTemplate
SetAllowTooltip(Menu, Boolean)

Sets AllowTooltip attached property

SetInputGestureText(FrameworkElement, String)

Sets InputGestureText attached property

Applies to