Class DiagramMenuItem
Represents a class that holds basic informations and functionalities of SfDiagram Menu Items.
Inheritance
Implements
Namespace: Syncfusion.UI.Xaml.Diagram.Controls
Assembly: Syncfusion.SfDiagram.WPF.dll
Syntax
public class DiagramMenuItem : DependencyObject, INotifyPropertyChanged
Constructors
DiagramMenuItem()
Declaration
public DiagramMenuItem()
Fields
CommandProperty
Gets or sets a command value for diagram menu items.
Declaration
public static readonly DependencyProperty CommandProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
Properties
Command
Gets or sets commands for DiagramMenuItem class.
Declaration
public ICommand Command { get; set; }
Property Value
Type |
---|
System.Windows.Input.ICommand |
CommandParameter
Gets or sets the parameter value to the commands of menu items.
Declaration
public object CommandParameter { get; set; }
Property Value
Type |
---|
System.Object |
Content
Gets or sets the content to the menu items.
Declaration
public object Content { get; set; }
Property Value
Type |
---|
System.Object |
ContentTemplate
Gets or sets the content template vaue to the menu items.
Declaration
public DataTemplate ContentTemplate { get; set; }
Property Value
Type |
---|
System.Windows.DataTemplate |
Icon
Gets or sets icon for the menu items.
Declaration
public object Icon { get; set; }
Property Value
Type |
---|
System.Object |
IsCheckable
Gets or sets a value that indicates whether the menu item is checked.
Declaration
public bool IsCheckable { get; set; }
Property Value
Type |
---|
System.Boolean |
IsSeparator
Gets or sets a value that indicates whether menu items are separted to each other.
Declaration
public bool IsSeparator { get; set; }
Property Value
Type |
---|
System.Boolean |
Items
Gets or sets the collection of items to the diagram menu.
Declaration
public ObservableCollection<DiagramMenuItem> Items { get; set; }
Property Value
Type |
---|
System.Collections.ObjectModel.ObservableCollection<DiagramMenuItem> |
Methods
add_ClickedEvent(MenuItemClickedEventHander)
Declaration
public void add_ClickedEvent(MenuItemClickedEventHander value)
Parameters
Type | Name | Description |
---|---|---|
MenuItemClickedEventHander | value |
OnClickedEvent(MenuItemClickedEventArgs)
Occurs when menu item is clicked.
Declaration
public void OnClickedEvent(MenuItemClickedEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
MenuItemClickedEventArgs | args | A MenuItemClickedEventArgs that contains event information. |
OnPropertyChanged(String)
Represents a virtual method which invokes to change the value of given property.
Declaration
protected virtual void OnPropertyChanged(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name of the property. |
remove_ClickedEvent(MenuItemClickedEventHander)
Declaration
public void remove_ClickedEvent(MenuItemClickedEventHander value)
Parameters
Type | Name | Description |
---|---|---|
MenuItemClickedEventHander | value |
Events
ClickedEvent
Represents an event that occurs when menu item is clicked.
Declaration
public event MenuItemClickedEventHander ClickedEvent
Event Type
Type |
---|
MenuItemClickedEventHander |
PropertyChanged
Represents an event that occurs when properties of DiagramMenuItem class is changed.
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
Type |
---|
System.ComponentModel.PropertyChangedEventHandler |