Class QuickCommand
QuickCommand has been added for Nodes and connectors and allows to add required commands with customized shapes for the selected item
Inherited Members
Namespace: Syncfusion.UI.Xaml.Diagram
Assembly: Syncfusion.SfDiagram.WPF.dll
Syntax
public class QuickCommand : DiagramThumb, IView, IDiagramElement, IID, INotifyPropertyChanged
Constructors
QuickCommand()
Constructs a new instance of the QuickCommand class.
Declaration
public QuickCommand()
Fields
IDProperty
Using a DependencyProperty as the backing store for ID property. This enables animation, styling, binding, etc...
Declaration
public static DependencyProperty IDProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
KeyProperty
Using a DependencyProperty as the backing store for Key. This enables animation, styling, binding, etc...
Declaration
public static DependencyProperty KeyProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
Properties
BoundingRectangle
Gets or sets the bounding rectangle of the QuickCommand.
Declaration
public Rect BoundingRectangle { get; }
Property Value
Type |
---|
System.Windows.Rect |
ID
Gets or sets the ID of Qucikcommand
Declaration
public object ID { get; set; }
Property Value
Type |
---|
System.Object |
Key
Gets or sets the Key of Qucikcommand
Declaration
public object Key { get; set; }
Property Value
Type |
---|
System.Object |
Methods
ArrangeOverride(Size)
Method to arrange QuickCommand class elements to given size.
Declaration
protected override Size ArrangeOverride(Size arrangeBounds)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Size | arrangeBounds | Size to arrange elements. |
Returns
Type | Description |
---|---|
System.Windows.Size | Return size. |
MeasureOverride(Size)
Method to measure size of QuickCommand class elements.
Declaration
protected override Size MeasureOverride(Size availableSize)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Size | availableSize | Size to be measure. |
Returns
Type | Description |
---|---|
System.Windows.Size | Return measured size. |
OnApplyTemplate()
Method to apply template values to QuickCommand class.
Declaration
public override void OnApplyTemplate()
Overrides
OnCreateAutomationPeer()
Declaration
protected override AutomationPeer OnCreateAutomationPeer()
Returns
Type |
---|
System.Windows.Automation.Peers.AutomationPeer |
Overrides
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 propertyName)
Parameters
Type | Name | Description |
---|---|---|
System.String | propertyName |
Events
PropertyChanged
Occurs when a property value changes.
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
Type |
---|
System.ComponentModel.PropertyChangedEventHandler |