menu

WPF

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

    Show / Hide Table of Contents

    Class SymbolViewModel

    SymbolViewModel is to describe the symbol.

    Inheritance
    System.Object
    DiagramElementViewModel
    SymbolViewModel
    Implements
    IDiagramElement
    IID
    System.ComponentModel.INotifyPropertyChanged
    ISymbol
    Inherited Members
    DiagramElementViewModel.ID
    DiagramElementViewModel.Info
    DiagramElementViewModel.OnPropertyChanged(String)
    DiagramElementViewModel.PropertyChanged
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Syncfusion.UI.Xaml.Diagram.Stencil
    Assembly: Syncfusion.SfDiagram.WPF.dll
    Syntax
    public class SymbolViewModel : DiagramElementViewModel, IDiagramElement, IID, INotifyPropertyChanged, ISymbol

    Constructors

    SymbolViewModel()

    Declaration
    public SymbolViewModel()

    Properties

    Key

    Gets or sets a unique name for symbol.

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

    Menu

    Gets or sets the additional menu items for context menu.

    Declaration
    public DiagramMenu Menu { get; set; }
    Property Value
    Type
    DiagramMenu

    Name

    Gets or sets the identifying name of the SymbolViewModel.

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

    The name of the element. The default is an empty string.

    Remarks

    This property is used as tool tip for the corresponding Symbol and also used to find the corresponding symbol in the Syncfusion.UI.Xaml.Diagram.Stencil.

    SearchTags

    Gets or sets the search tags of the SymbolViewModel in the Syncfusion.UI.Xaml.Diagram.Stencil.

    Declaration
    public IEnumerable<string> SearchTags { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.IEnumerable<System.String>

    The list of search tags that are used when you search for the symbol in the Syncfusion.UI.Xaml.Diagram.Stencil. The default is null.

    Symbol

    Gets or sets a symbol to be added in Stencil which can accept any object.

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

    SymbolTemplate

    Gets or sets the System.Windows.DataTemplate used to display symbol.

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

    Methods

    Clone()

    Creates a modifiable clone of this symbol, making deep copies of this object's values.

    Declaration
    public ISymbol Clone()
    Returns
    Type
    ISymbol

    Implements

    IDiagramElement
    IID
    System.ComponentModel.INotifyPropertyChanged
    ISymbol
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved