Class QuickCommandViewModel
Represents to execute the commonly or frequently used commands around the nodes, connectors and groups. There are 3 default quickcommands for nodes and groups to execute Draw, Delete and Duplicate commands
Inheritance
Inherited Members
Namespace: Syncfusion.UI.Xaml.Diagram
Assembly: Syncfusion.SfDiagram.WPF.dll
Syntax
public class QuickCommandViewModel : IQuickCommand, INotifyPropertyChanged
Constructors
QuickCommandViewModel()
Initializes a new instance of the QuickCommandViewModel class.
Declaration
public QuickCommandViewModel()
Properties
Command
Gets or sets the command to invoke when this quickcommand is pressed.
Declaration
public ICommand Command { get; set; }
Property Value
| Type |
|---|
| System.Windows.Input.ICommand |
CommandParameter
Gets or sets the parameter to pass to the Command property.
Declaration
public object CommandParameter { get; set; }
Property Value
| Type |
|---|
| System.Object |
Content
Gets or sets the shape of the quickcommand.
Declaration
public object Content { get; set; }
Property Value
| Type |
|---|
| System.Object |
ContentTemplate
Gets or sets the appearance of the quickcommand.
Declaration
public DataTemplate ContentTemplate { get; set; }
Property Value
| Type |
|---|
| System.Windows.DataTemplate |
Displacement
Gets or sets the distance to place the quickcommand over the Connector path(Absolute).
Declaration
public double Displacement { get; set; }
Property Value
| Type |
|---|
| System.Double |
DragCommand
Gets or sets the command to invoke when this quickcommand is dragged.
Declaration
public ICommand DragCommand { get; set; }
Property Value
| Type |
|---|
| System.Windows.Input.ICommand |
HorizontalAlignment
Gets or sets the horizontal alignment characteristics applied to this element
Declaration
public HorizontalAlignment HorizontalAlignment { get; set; }
Property Value
| Type |
|---|
| System.Windows.HorizontalAlignment |
Length
Gets or sets the distance to place the quickcommand over the Connector path(Fraction(0 to 1)).
Declaration
public double Length { get; set; }
Property Value
| Type |
|---|
| System.Double |
Margin
Gets or sets the space around the Selector.
Declaration
public Thickness Margin { get; set; }
Property Value
| Type |
|---|
| System.Windows.Thickness |
OffsetX
Gets or sets the position of the quickcommand on X-Axis.
Declaration
public double OffsetX { get; set; }
Property Value
| Type |
|---|
| System.Double |
OffsetY
Gets or sets the position of the quickcommand on Y-Axis.
Declaration
public double OffsetY { get; set; }
Property Value
| Type |
|---|
| System.Double |
Pivot
Gets or sets the quickcommand should be align based on Pivot point.
Declaration
public Point Pivot { get; set; }
Property Value
| Type |
|---|
| System.Windows.Point |
Shape
Gets or sets the shape Background of the quickcommand.
Declaration
public object Shape { get; set; }
Property Value
| Type |
|---|
| System.Object |
ShapeStyle
Gets or sets the Style of the quickcommand.
Declaration
public Style ShapeStyle { get; set; }
Property Value
| Type |
|---|
| System.Windows.Style |
VerticalAlignment
Gets or sets the vertical alignment characteristics applied to this element.
Declaration
public VerticalAlignment VerticalAlignment { get; set; }
Property Value
| Type |
|---|
| System.Windows.VerticalAlignment |
VisibilityMode
Gets or sets whether the QuickCommand is for Node, Connector or RuberBandSelection.
Declaration
public VisibilityMode VisibilityMode { get; set; }
Property Value
| Type |
|---|
| VisibilityMode |
Methods
OnPropertyChanged(String)
Invoked whenever the effective value of any dependency property on this FrameworkElement has been updated. The specific dependency property that changed is reported in the arguments parameter. Overrides OnPropertyChanged(name).
Declaration
protected virtual void OnPropertyChanged(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name |
Events
PropertyChanged
Occurs when a property value changes.
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
| Type |
|---|
| System.ComponentModel.PropertyChangedEventHandler |