Class MenuItemAdv
Represents the Menu Item Adv Class.
Inheritance
Implements
Namespace: Syncfusion.Windows.Shared
Assembly: Syncfusion.Shared.Wpf.dll
Syntax
[TemplateVisualState(Name = "Disabled", GroupName = "CommonStates")]
[TemplateVisualState(Name = "Selected", GroupName = "CommonStates")]
[TemplateVisualState(Name = "SubMenuItemFocused", GroupName = "CommonStates")]
[TemplateVisualState(Name = "Normal", GroupName = "CommonStates")]
[TemplateVisualState(Name = "MenuItemFocused", GroupName = "CommonStates")]
[TemplateVisualState(Name = "MenuItemSelected", GroupName = "CommonStates")]
public class MenuItemAdv : HeaderedItemsControl, ICommandSource
Constructors
MenuItemAdv()
Declaration
public MenuItemAdv()
Fields
BottomScrollButtonStyleProperty
Represents the style of Bottom Scroll Button present in the subMenu Popup.
Declaration
public static readonly DependencyProperty BottomScrollButtonStyleProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
CheckBoxStyleProperty
Represents the style of Check Box present in the MenuItem Icon.
Declaration
public static readonly DependencyProperty CheckBoxStyleProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
CheckBoxVisibilityProperty
Using a DependencyProperty as the backing store for CheckBox Visibility. It Represents the checkBox placed in MenuItem Icon can be visible or not.
Declaration
public static readonly DependencyProperty CheckBoxVisibilityProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
ClickEvent
Occurs when [click].
Declaration
public static readonly RoutedEvent ClickEvent
Field Value
Type |
---|
System.Windows.RoutedEvent |
CommandParameterProperty
Using a DependencyProperty as the backing store for Command Parameter. It Represents the Command Parameter to be passed to execute the command.
Declaration
public static readonly DependencyProperty CommandParameterProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
CommandProperty
Using a DependencyProperty as the backing store for Command. It Represents the Command to be excecuted.
Declaration
public static readonly DependencyProperty CommandProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
CommandTargetProperty
Using a DependencyProperty as the backing store for Commandtarget.
Declaration
public static readonly DependencyProperty CommandTargetProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
ExtendButtonVisibilityProperty
Represents the ExtendButton is Visible or not
Declaration
public static readonly DependencyProperty ExtendButtonVisibilityProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
GroupNameProperty
Using a DependencyProperty as the backing store for GroupName. It Represents GroupName of the MenuItem to use the Radion Button fuctionality.
Declaration
public static readonly DependencyProperty GroupNameProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
IconProperty
Using a DependencyProperty as the backing store for Icon of type Object
Declaration
public static readonly DependencyProperty IconProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
InputGestureTextProperty
Using a DependencyProperty as the backing store for InputGestureText. It Represents InputGestureText of the MenuItem to be displayed right to the header.
Declaration
public static readonly DependencyProperty InputGestureTextProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
IsCheckableProperty
Using a DependencyProperty as the backing store for IsCheckable. It Represents the MenuItem can be checkable or not.
Declaration
public static readonly DependencyProperty IsCheckableProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
IsCheckedProperty
Using a DependencyProperty as the backing store for IsChecked. It Represents the MenuItem is Checked or not.
Declaration
public static readonly DependencyProperty IsCheckedProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
IsPressedProperty
Declaration
public static readonly DependencyProperty IsPressedProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
IsSubMenuOpenProperty
Represents SubMenu popup is Open or closed
Declaration
public static readonly DependencyProperty IsSubMenuOpenProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
RadioButtonStyleProperty
Represents the style of Radio Button present in the MenuItem Icon.
Declaration
public static readonly DependencyProperty RadioButtonStyleProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
RadioButtonVisibilityProperty
Using a DependencyProperty as the backing store for Radio Button Visibility. It Represents the Radio Button placed in MenuItem Icon can be visible or not.
Declaration
public static readonly DependencyProperty RadioButtonVisibilityProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
RoleProperty
Using a DependencyProperty as the backing store for Role. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty RoleProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
ScrollerHeightProperty
Using a DependencyProperty as the backing store for Scroller Height. It Represents the checkBox placed in MEnuItem Icon can be visible or not.
Declaration
public static readonly DependencyProperty ScrollerHeightProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
StaysOpenOnClickProperty
Represents the MenuItem popup to stay open On click
Declaration
public static readonly DependencyProperty StaysOpenOnClickProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
TopScrollButtonStyleProperty
Represents the style of Top Scroll Button present in the subMenu Popup.
Declaration
public static readonly DependencyProperty TopScrollButtonStyleProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
Properties
BottomScrollButtonStyle
Gets or sets the bottom scroll button style.
Declaration
public Style BottomScrollButtonStyle { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Style | The bottom scroll button style. |
CheckBoxStyle
Gets or sets the check box style.
Declaration
public Style CheckBoxStyle { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Style | The check box style. |
CheckBoxVisibility
Gets or sets the check box visibility.
Declaration
public Visibility CheckBoxVisibility { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Visibility | The check box visibility. |
CheckIconType
Gets or sets the type of the check icon.
Declaration
public CheckIconType CheckIconType { get; set; }
Property Value
Type | Description |
---|---|
CheckIconType | The type of the check icon. |
Command
Gets or sets the command.
Declaration
public ICommand Command { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Input.ICommand | The command. |
CommandParameter
Gets or sets the command parameter.
Declaration
public object CommandParameter { get; set; }
Property Value
Type | Description |
---|---|
System.Object | The command parameter. |
CommandTarget
The object that the command is being executed on.
Declaration
public IInputElement CommandTarget { get; set; }
Property Value
Type |
---|
System.Windows.IInputElement |
ExtendButtonVisibility
Gets or sets the extend button visibility.
Declaration
public Visibility ExtendButtonVisibility { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Visibility | The extend button visibility. |
GroupName
Gets or sets the name of the group.
Declaration
public string GroupName { get; set; }
Property Value
Type | Description |
---|---|
System.String | The name of the group. |
Icon
Gets or sets the icon.
Declaration
public object Icon { get; set; }
Property Value
Type | Description |
---|---|
System.Object | The icon. |
InputGestureText
Gets or sets the Input Gesture Text.
Declaration
public string InputGestureText { get; set; }
Property Value
Type | Description |
---|---|
System.String | The Input Gesture Text. |
IsCheckable
Gets or sets a value indicating whether this instance is checkable.
Declaration
public bool IsCheckable { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
IsChecked
Gets or sets a value indicating whether this instance is checked.
Declaration
public bool IsChecked { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
IsPressed
Declaration
public bool IsPressed { get; set; }
Property Value
Type |
---|
System.Boolean |
IsSubMenuOpen
Gets or sets a value indicating whether this instance is sub menu open.
Declaration
public bool IsSubMenuOpen { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
RadioButtonStyle
Gets or sets the radio button style.
Declaration
public Style RadioButtonStyle { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Style | The radio button style. |
RadioButtonVisibility
Gets or sets the radio button visibility.
Declaration
public Visibility RadioButtonVisibility { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Visibility | The radio button visibility. |
Role
Gets or sets the role.
Declaration
public Role Role { get; }
Property Value
Type | Description |
---|---|
Role | The role. |
ScrollerHeight
Gets or sets the height of the scroller.
Declaration
public double ScrollerHeight { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The height of the scroller. |
StaysOpenOnClick
Gets or sets a value indicating whether this instance is stays open on click.
Declaration
public bool StaysOpenOnClick { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
TopScrollButtonStyle
Gets or sets the top scroll button style.
Declaration
public Style TopScrollButtonStyle { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Style | The top scroll button style. |
Methods
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. |
OnAccessKey(AccessKeyEventArgs)
Declaration
protected override void OnAccessKey(AccessKeyEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.AccessKeyEventArgs | e |
OnApplyTemplate()
Builds the visual tree for the System.Windows.Controls.HeaderedItemsControl when a new template is applied.
Declaration
public override void OnApplyTemplate()
OnClosed(RoutedEventArgs)
Declaration
protected virtual void OnClosed(RoutedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.RoutedEventArgs | e |
OnClosing(RoutedEventArgs)
Declaration
protected virtual void OnClosing(RoutedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.RoutedEventArgs | e |
OnIsCheckedPropertyChanged(DependencyPropertyChangedEventArgs)
Declaration
protected virtual void OnIsCheckedPropertyChanged(DependencyPropertyChangedEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | args |
OnKeyDown(KeyEventArgs)
Called before the System.Windows.UIElement.KeyDown event occurs.
Declaration
protected override void OnKeyDown(KeyEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.KeyEventArgs | e | The data for the event. |
OnKeyUp(KeyEventArgs)
Invoked On KeyUp
Declaration
protected override void OnKeyUp(KeyEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.KeyEventArgs | e |
OnLostFocus(RoutedEventArgs)
Declaration
protected override void OnLostFocus(RoutedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.RoutedEventArgs | e |
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. |
OnMouseLeftButtonDown(MouseButtonEventArgs)
Handles the MouseLeftButtonDown event.
Declaration
protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.MouseButtonEventArgs | e | The MouseButtonEventArgs that contains the event data. |
OnMouseLeftButtonUp(MouseButtonEventArgs)
Called before the System.Windows.UIElement.MouseLeftButtonUp event occurs.
Declaration
protected override void OnMouseLeftButtonUp(MouseButtonEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.MouseButtonEventArgs | e | The data for the event. |
OnOpened(RoutedEventArgs)
Declaration
protected virtual void OnOpened(RoutedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.RoutedEventArgs | e |
OnOpening(RoutedEventArgs)
Declaration
protected virtual void OnOpening(RoutedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.RoutedEventArgs | e |
OnPanelWidthChanged(DependencyPropertyChangedEventArgs)
Declaration
protected void OnPanelWidthChanged(DependencyPropertyChangedEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | args |
OnPreviewKeyDown(KeyEventArgs)
Invoked On PreviewKeyDown
Declaration
protected override void OnPreviewKeyDown(KeyEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.KeyEventArgs | e |
OnPreviewKeyUp(KeyEventArgs)
Declaration
protected override void OnPreviewKeyUp(KeyEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.KeyEventArgs | e |
OnPreviewMouseLeftButtonDown(MouseButtonEventArgs)
Declaration
protected override void OnPreviewMouseLeftButtonDown(MouseButtonEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.MouseButtonEventArgs | e |
OnPreviewMouseLeftButtonUp(MouseButtonEventArgs)
Called before the System.Windows.UIElement.MouseLeftButtonDown event occurs.
Declaration
protected override void OnPreviewMouseLeftButtonUp(MouseButtonEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.MouseButtonEventArgs | 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 |
---|---|---|
System.Windows.DependencyObject | element | The container element used to display the specified item. |
System.Object | item | The content to display. |
Events
Checked
Occurs when [checked].
Declaration
public event RoutedEventHandler Checked
Event Type
Type |
---|
System.Windows.RoutedEventHandler |
Click
Declaration
public event RoutedEventHandler Click
Event Type
Type |
---|
System.Windows.RoutedEventHandler |
PopUpClosed
Occurs when [PopUpclosed].
Declaration
public event RoutedEventHandler PopUpClosed
Event Type
Type |
---|
System.Windows.RoutedEventHandler |
PopUpClosing
Occurs when [PopUpclosing].
Declaration
public event RoutedEventHandler PopUpClosing
Event Type
Type |
---|
System.Windows.RoutedEventHandler |
PopUpOpened
Occurs when [PopUpopened].
Declaration
public event RoutedEventHandler PopUpOpened
Event Type
Type |
---|
System.Windows.RoutedEventHandler |
PopUpOpening
Occurs when [PopUpopening].
Declaration
public event RoutedEventHandler PopUpOpening
Event Type
Type |
---|
System.Windows.RoutedEventHandler |
UnChecked
Occurs when [un checked].
Declaration
public event RoutedEventHandler UnChecked
Event Type
Type |
---|
System.Windows.RoutedEventHandler |