Class SfMenu
SfMenu control list of commands and actions can be displayed.
Inheritance
Implements
Namespace: Syncfusion.UI.Xaml.Controls.Navigation
Assembly: Syncfusion.SfMenu.UWP.dll
Syntax
[ClassReference(IsReviewed = false)]
public class SfMenu : ItemsControl, IDisposable
Constructors
SfMenu()
Initializes a new instance of the SfMenu class.
Declaration
[ClassReference(IsReviewed = false)]
public SfMenu()
Fields
ExpandModesProperty
Using a DependencyProperty as the backing store for Expand modes. This enables the Expand on click or expand on mouse over supports...
Declaration
public static readonly DependencyProperty ExpandModesProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
FocusOnAltProperty
Using a DependencyProperty as the backing store for IsFocus on AltKey. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty FocusOnAltProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
IconGridVisibilityProperty
Using a DependencyProperty as the backing store for IconGridVisibility. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty IconGridVisibilityProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
IsMenuItemScrollabilityEnabledProperty
Using a DependencyProperty as the backing store for Scroll ability. This enables scrolling of the submenu items...
Declaration
public static readonly DependencyProperty IsMenuItemScrollabilityEnabledProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
OrientationProperty
Using a DependencyProperty as the backing store for Orientation. This enables the orientation of the Menu...
Declaration
public static readonly DependencyProperty OrientationProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
PopUpAnimationTypeProperty
Using a DependencyProperty as the backing store for Popup Animation. This enables the animation of popup like fade, slide or scroll.
Declaration
public static readonly DependencyProperty PopUpAnimationTypeProperty
Field Value
Type |
---|
Windows.UI.Xaml.DependencyProperty |
Properties
ExpandMode
Gets or sets the expand mode.
Declaration
[ClassReference(IsReviewed = false)]
public ExpandModes ExpandMode { get; set; }
Property Value
Type | Description |
---|---|
ExpandModes | The expand mode. |
FocusOnAlt
Gets or sets a value indicating whether focus is enabled/disabled when Alt key is pressed
Declaration
public bool FocusOnAlt { get; set; }
Property Value
Type |
---|
System.Boolean |
IconGridVisibility
Gets or sets a value indicating whether this instance is menu item Icons or visible or not.
Declaration
[ClassReference(IsReviewed = false)]
public Visibility IconGridVisibility { get; set; }
Property Value
Type | Description |
---|---|
Windows.UI.Xaml.Visibility |
|
IsScrollEnabled
Gets or sets a value indicating whether this instance is menu item scroll ability enabled.
Declaration
[ClassReference(IsReviewed = false)]
public bool IsScrollEnabled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
ItemContGenerator
Gets the ItemContainerGenerator value.
Declaration
public ItemContainerGeneratorAdv ItemContGenerator { get; }
Property Value
Type |
---|
ItemContainerGeneratorAdv |
Orientation
Gets or sets the orientation.
Declaration
[ClassReference(IsReviewed = false)]
public Orientation Orientation { get; set; }
Property Value
Type | Description |
---|---|
Windows.UI.Xaml.Controls.Orientation | The orientation. |
PopUpAnimationType
Gets or sets the type of the pop up animation.
Declaration
public PopUpAnimationTypes PopUpAnimationType { get; set; }
Property Value
Type | Description |
---|---|
PopUpAnimationTypes | The type of the pop up animation. |
Methods
Dispose()
Represents dispose method for disposing unwanted objects
Declaration
public void Dispose()
Dispose(Boolean)
Disposing unwanted objects from Menu
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing | Argument to dispose the unused object |
GetContainerForItemOverride()
Creates or identifies the element that is used to display the given item.
Declaration
protected override DependencyObject GetContainerForItemOverride()
Returns
Type | Description |
---|---|
Windows.UI.Xaml.DependencyObject | The element that is used to display the given item. |
IsItemItsOwnContainerOverride(Object)
Determines if the specified item is (or is eligible to be) its own container.
Declaration
protected override bool IsItemItsOwnContainerOverride(object item)
Parameters
Type | Name | Description |
---|---|---|
System.Object | item | The item to check. |
Returns
Type | Description |
---|---|
System.Boolean | true if the item is (or is eligible to be) its own container; otherwise, false. |
OnApplyTemplate()
When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call System.Windows.Controls.Control.ApplyTemplate. In simplest terms, this means the method is called just before a UI element displays in an application. For more information, see Remarks.
Declaration
protected override void OnApplyTemplate()
OnPointerEntered(PointerRoutedEventArgs)
Called before the System.Windows.UIElement.MouseEnter event occurs.
Declaration
protected override void OnPointerEntered(PointerRoutedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
Windows.UI.Xaml.Input.PointerRoutedEventArgs | e | The data for the event. |
OnPointerExited(PointerRoutedEventArgs)
Called before the Windows.UI.Xaml.Controls.OnPointerExited event occurs.
Declaration
protected override void OnPointerExited(PointerRoutedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
Windows.UI.Xaml.Input.PointerRoutedEventArgs | e | The data for the event. |
OnPointerPressed(PointerRoutedEventArgs)
Called before the Windows.UI.Xaml.Controls.OnPointerPressed event occurs.
Declaration
protected override void OnPointerPressed(PointerRoutedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
Windows.UI.Xaml.Input.PointerRoutedEventArgs | e | The data for the event. |
PrepareContainerForItemOverride(DependencyObject, Object)
Prepares the specified element to display the specified item.
Declaration
protected override void PrepareContainerForItemOverride(DependencyObject element, object item)
Parameters
Type | Name | Description |
---|---|---|
Windows.UI.Xaml.DependencyObject | element | The element used to display the specified item. |
System.Object | item | The item to display. |