Class SymbolViewModel
SymbolViewModel is to describe the symbol.
Inherited Members
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 |