menu

UWP

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class DiagramMenuItem - UWP API Reference | Syncfusion

    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.UWP.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
    Windows.UI.Xaml.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

    Icon

    Gets or sets icon for the menu items.

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

    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

    Implements

    System.ComponentModel.INotifyPropertyChanged

    Extension Methods

    DateTimeExtension.ToDateTime(Object)
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved