Class MenuAdv
MenuAdv class
Inheritance
Namespace: Syncfusion.Windows.Shared
Assembly: Syncfusion.Shared.Wpf.dll
Syntax
[SkinType(SkinVisualStyle = Skin.ShinyRed, Type = typeof(MenuAdv), XamlResource = "pack://application:,,,/Syncfusion.Shared.Wpf.Classic;component/Controls/MenuAdv/Themes/ShinyRedStyle.xaml")]
[SkinType(SkinVisualStyle = Skin.VS2010, Type = typeof(MenuAdv), XamlResource = "pack://application:,,,/Syncfusion.Shared.Wpf.Classic;component/Controls/MenuAdv/Themes/VS2010Style.xaml")]
[SkinType(SkinVisualStyle = Skin.Blend, Type = typeof(MenuAdv), XamlResource = "pack://application:,,,/Syncfusion.Shared.Wpf.Classic;component/Controls/MenuAdv/Themes/BlendStyle.xaml")]
[SkinType(SkinVisualStyle = Skin.Office2013, Type = typeof(MenuAdv), XamlResource = "pack://application:,,,/Syncfusion.Shared.Wpf.Classic;component/Controls/MenuAdv/Themes/Office2013Style.xaml")]
[SkinType(SkinVisualStyle = Skin.Office2007Silver, Type = typeof(MenuAdv), XamlResource = "pack://application:,,,/Syncfusion.Shared.Wpf.Classic;component/Controls/MenuAdv/Themes/Office2007SilverStyle.xaml")]
[SkinType(SkinVisualStyle = Skin.Office2007Black, Type = typeof(MenuAdv), XamlResource = "pack://application:,,,/Syncfusion.Shared.Wpf.Classic;component/Controls/MenuAdv/Themes/Office2007BlackStyle.xaml")]
[SkinType(SkinVisualStyle = Skin.Office2010Blue, Type = typeof(MenuAdv), XamlResource = "pack://application:,,,/Syncfusion.Shared.Wpf.Classic;component/Controls/MenuAdv/Themes/Office2010BlueStyle.xaml")]
[SkinType(SkinVisualStyle = Skin.Office2010Silver, Type = typeof(MenuAdv), XamlResource = "pack://application:,,,/Syncfusion.Shared.Wpf.Classic;component/Controls/MenuAdv/Themes/Office2010SilverStyle.xaml")]
[SkinType(SkinVisualStyle = Skin.Office2010Black, Type = typeof(MenuAdv), XamlResource = "pack://application:,,,/Syncfusion.Shared.Wpf.Classic;component/Controls/MenuAdv/Themes/Office2010BlackStyle.xaml")]
[SkinType(SkinVisualStyle = Skin.Office2003, Type = typeof(MenuAdv), XamlResource = "pack://application:,,,/Syncfusion.Shared.Wpf.Classic;component/Controls/MenuAdv/Themes/Office2003Style.xaml")]
[SkinType(SkinVisualStyle = Skin.Default, Type = typeof(MenuAdv), XamlResource = "/Syncfusion.Shared.Wpf;component/Controls/MenuAdv/Themes/MenuAdvResources.xaml")]
[SkinType(SkinVisualStyle = Skin.Office2007Blue, Type = typeof(MenuAdv), XamlResource = "pack://application:,,,/Syncfusion.Shared.Wpf.Classic;component/Controls/MenuAdv/Themes/Office2007BlueStyle.xaml")]
[SkinType(SkinVisualStyle = Skin.ShinyBlue, Type = typeof(MenuAdv), XamlResource = "pack://application:,,,/Syncfusion.Shared.Wpf.Classic;component/Controls/MenuAdv/Themes/ShinyBlueStyle.xaml")]
[SkinType(SkinVisualStyle = Skin.SyncOrange, Type = typeof(MenuAdv), XamlResource = "pack://application:,,,/Syncfusion.Shared.Wpf.Classic;component/Controls/MenuAdv/Themes/SyncOrangeStyle.xaml")]
[SkinType(SkinVisualStyle = Skin.Metro, Type = typeof(MenuAdv), XamlResource = "pack://application:,,,/Syncfusion.Shared.Wpf.Classic;component/Controls/MenuAdv/Themes/MetroStyle.xaml")]
[SkinType(SkinVisualStyle = Skin.Transparent, Type = typeof(MenuAdv), XamlResource = "pack://application:,,,/Syncfusion.Shared.Wpf.Classic;component/Controls/MenuAdv/Themes/TransparentStyle.xaml")]
public class MenuAdv : ItemsControl
Constructors
MenuAdv()
Declaration
public MenuAdv()
Fields
ExpandModeProperty
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 ExpandModeProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
FocusOnAltProperty
Using a DependencyProperty as the backing store for IsFocusonAltKey. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty FocusOnAltProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
IsScrollEnabledProperty
Using a DependencyProperty as the backing store for Scrollability. This enables scrolling of the submenu items...
Declaration
public static readonly DependencyProperty IsScrollEnabledProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
OrientationProperty
Using a DependencyProperty as the backing store for Orientation. This enables the orientation of the MenuAdv...
Declaration
public static readonly DependencyProperty OrientationProperty
Field Value
Type |
---|
System.Windows.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 |
---|
System.Windows.DependencyProperty |
Properties
ExpandMode
Gets or sets the expand mode.
Declaration
public ExpandModes ExpandMode { get; set; }
Property Value
Type | Description |
---|---|
ExpandModes | The expand mode. |
FocusOnAlt
Declaration
public bool FocusOnAlt { get; set; }
Property Value
Type |
---|
System.Boolean |
IsScrollEnabled
Gets or sets a value indicating whether this instance is menu item scrollability enabled.
Declaration
public bool IsScrollEnabled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Orientation
Gets or sets the orientation.
Declaration
public Orientation Orientation { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Controls.Orientation | The orientation. |
PopUpAnimationType
Gets or sets the type of the pop up animation.
Declaration
public AnimationTypes PopUpAnimationType { get; set; }
Property Value
Type | Description |
---|---|
AnimationTypes | The type of the pop up animation. |
Methods
Dispose()
Releases all the resources used by this component.
Declaration
public void Dispose()
GetContainerForItemOverride()
Creates or identifies the element that is used to display the given item.
Declaration
protected override DependencyObject GetContainerForItemOverride()
Returns
Type | Description |
---|---|
System.Windows.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
public override void OnApplyTemplate()
OnMouseEnter(MouseEventArgs)
Called before the System.Windows.UIElement.MouseEnter event occurs.
Declaration
protected override void OnMouseEnter(MouseEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.MouseEventArgs | e | The data for the event. |
OnMouseLeave(MouseEventArgs)
Called before the System.Windows.UIElement.MouseLeave event occurs.
Declaration
protected override void OnMouseLeave(MouseEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.MouseEventArgs | e | The data for the event. |
OnPreviewKeyUp(KeyEventArgs)
Declaration
protected override void OnPreviewKeyUp(KeyEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.KeyEventArgs | e |
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 |
---|---|---|
System.Windows.DependencyObject | element | The element used to display the specified item. |
System.Object | item | The item to display. |