WPF

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class DiagramMenuItem - WPF API Reference | Syncfusion SfDiagram Menu Items. ">

    Show / Hide Table of Contents

    Class DiagramMenuItem

    Represents a class that holds basic informations and functionalities of SfDiagram Menu Items.

    Inheritance
    System.Object
    DiagramMenuItem
    Implements
    System.ComponentModel.INotifyPropertyChanged
    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 Description
    System.Windows.DependencyProperty

    Properties

    Command

    Declaration
    public ICommand Command { get; set; }
    Property Value
    Type Description
    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 Description
    System.Object

    Content

    Gets or sets the content to the menu items.

    Declaration
    public object Content { get; set; }
    Property Value
    Type Description
    System.Object

    ContentTemplate

    Gets or sets the content template vaue to the menu items.

    Declaration
    public DataTemplate ContentTemplate { get; set; }
    Property Value
    Type Description
    System.Windows.DataTemplate

    Icon

    Gets or sets icon for the menu items.

    Declaration
    public string Icon { get; set; }
    Property Value
    Type Description
    System.String

    IsCheckable

    Gets or sets a value that indicates whether the menu item is checked.

    Declaration
    public bool IsCheckable { get; set; }
    Property Value
    Type Description
    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 Description
    System.Boolean

    Items

    Gets or sets the collection of items to the diagram menu.

    Declaration
    public ObservableCollection<DiagramMenuItem> Items { get; set; }
    Property Value
    Type Description
    System.Collections.ObjectModel.ObservableCollection<DiagramMenuItem>

    Methods

    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.

    Events

    ClickedEvent

    Represents an event that occurs when menu item is clicked.

    Declaration
    public event MenuItemClickedEventHander ClickedEvent
    Event Type
    Type Description
    MenuItemClickedEventHander

    PropertyChanged

    Represents an event that occurs when properties of DiagramMenuItem class is changed.

    Declaration
    public event PropertyChangedEventHandler PropertyChanged
    Event Type
    Type Description
    System.ComponentModel.PropertyChangedEventHandler

    Implements

    System.ComponentModel.INotifyPropertyChanged
    Back to top Generated by DocFX
    Copyright © 2001 - 2021 Syncfusion Inc. All Rights Reserved