From 019f34adc78c344b44b42fcf897982910c29c026 Mon Sep 17 00:00:00 2001
From: Satish Raj <154953536+satishraj-sf4377@users.noreply.github.com>
Date: Tue, 18 Jun 2024 11:10:55 +0530
Subject: [PATCH 1/2] WPF-889895-Corrected the Issues
---
wpf/Diagram/Interaction/UserHandle.md | 48 +++++++++++++--------------
1 file changed, 24 insertions(+), 24 deletions(-)
diff --git a/wpf/Diagram/Interaction/UserHandle.md b/wpf/Diagram/Interaction/UserHandle.md
index db92db2d6c..6db620f661 100644
--- a/wpf/Diagram/Interaction/UserHandle.md
+++ b/wpf/Diagram/Interaction/UserHandle.md
@@ -23,35 +23,35 @@ SfDiagram provides support to define custom quick command around the Nodes, Conn
{% highlight Xaml %}
-
+
{% endhighlight %}
{% highlight C# %}
// Element to represent the frequently used commands
- QuickCommandViewModel quick = new QuickCommandViewModel()
- {
- // Outer part of quick command.
- Shape = this.Resources["Ellipse"],
- // appearence of shape.
- ShapeStyle = this.Resources["QuickCommandstyle"] as Style,
- //Inner part of quick command and it allows to host any UI elements
- Content =
- "M3.7399902,0L16,12.258972 28.26001,0 32,3.7399902 19.73999,16 32,28.258972 28.26001,32 16,19.73999 3.7399902,32 0,28.258972 12.26001,16 0,3.7399902z",
-
- Command = (Diagram.Info as IGraphInfo).Commands.Cut
- };
-
- // Adding new QuickCommand object in Commands collection
- (Diagram.SelectedItems as SelectorViewModel).Commands = new QuickCommandCollection()
- {
- quick
- };
+QuickCommandViewModel quick = new QuickCommandViewModel()
+{
+ // Outer part of quick command.
+ Shape = this.Resources["Ellipse"],
+ // appearence of shape.
+ ShapeStyle = this.Resources["QuickCommandstyle"] as Style,
+ //Inner part of quick command and it allows to host any UI elements
+ Content =
+ "M3.7399902,0L16,12.258972 28.26001,0 32,3.7399902 19.73999,16 32,28.258972 28.26001,32 16,19.73999 3.7399902,32 0,28.258972 12.26001,16 0,3.7399902z",
+
+ Command = (Diagram.Info as IGraphInfo).Commands.Cut
+};
+
+// Adding new QuickCommand object in Commands collection
+(Diagram.SelectedItems as SelectorViewModel).Commands = new QuickCommandCollection()
+{
+ quick
+};
{% endhighlight %}
{% endtabs %}
@@ -64,7 +64,7 @@ Appearance of the [QuickCommand](https://help.syncfusion.com/cr/wpf/Syncfusion.U

-N> By default QuickCommand will host on Node. [VisibilityMode](https://help.syncfusion.com/cr/wpf/Syncfusion.UI.Xaml.Diagram.QuickCommandViewModel.html#Syncfusion_UI_Xaml_Diagram_QuickCommandViewModel_VisibilityMode) property is to define the host of the QuickCommand on either Node or Connector or both.
+N> By default QuickCommand will host on Node. [`VisibilityMode`](https://help.syncfusion.com/cr/wpf/Syncfusion.UI.Xaml.Diagram.QuickCommandViewModel.html#Syncfusion_UI_Xaml_Diagram_QuickCommandViewModel_VisibilityMode) property is to define the host of the QuickCommand on either Node or Connector or both.
### Alignment
From e68d1dc080ff919ec0957128bd742bc4998eecb2 Mon Sep 17 00:00:00 2001
From: Satish Raj <154953536+satishraj-sf4377@users.noreply.github.com>
Date: Wed, 26 Jun 2024 12:49:58 +0530
Subject: [PATCH 2/2] WPF-889895-Removed highlight from the properties with
link
---
wpf/Diagram/Interaction/UserHandle.md | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/wpf/Diagram/Interaction/UserHandle.md b/wpf/Diagram/Interaction/UserHandle.md
index 6db620f661..3bc2d7637c 100644
--- a/wpf/Diagram/Interaction/UserHandle.md
+++ b/wpf/Diagram/Interaction/UserHandle.md
@@ -64,15 +64,15 @@ Appearance of the [QuickCommand](https://help.syncfusion.com/cr/wpf/Syncfusion.U

-N> By default QuickCommand will host on Node. [`VisibilityMode`](https://help.syncfusion.com/cr/wpf/Syncfusion.UI.Xaml.Diagram.QuickCommandViewModel.html#Syncfusion_UI_Xaml_Diagram_QuickCommandViewModel_VisibilityMode) property is to define the host of the QuickCommand on either Node or Connector or both.
+N> By default QuickCommand will host on Node. [VisibilityMode](https://help.syncfusion.com/cr/wpf/Syncfusion.UI.Xaml.Diagram.QuickCommandViewModel.html#Syncfusion_UI_Xaml_Diagram_QuickCommandViewModel_VisibilityMode) property is to define the host of the QuickCommand on either Node or Connector or both.
### Alignment
QuickCommand can be aligned relative to boundaries of the Node or segments of the Connector.
-* [`OffsetX`](https://help.syncfusion.com/cr/wpf/Syncfusion.UI.Xaml.Diagram.QuickCommandViewModel.html#Syncfusion_UI_Xaml_Diagram_QuickCommandViewModel_OffsetX) and [`OffsetY`](https://help.syncfusion.com/cr/wpf/Syncfusion.UI.Xaml.Diagram.QuickCommandViewModel.html#Syncfusion_UI_Xaml_Diagram_QuickCommandViewModel_OffsetY) property of QuickCommand is used to align the QuickCommand based on fractions. The default value is 0.5.
-* [`HorizontalAlignment`](https://help.syncfusion.com/cr/wpf/Syncfusion.UI.Xaml.Diagram.QuickCommandViewModel.html#Syncfusion_UI_Xaml_Diagram_QuickCommandViewModel_HorizontalAlignment) and [`VerticalAlignment`](https://help.syncfusion.com/cr/wpf/Syncfusion.UI.Xaml.Diagram.QuickCommandViewModel.html#Syncfusion_UI_Xaml_Diagram_QuickCommandViewModel_VerticalAlignment) properties are used to align the quick commands for horizontal and vertical positions.
-* [`Margin`](https://help.syncfusion.com/cr/wpf/Syncfusion.UI.Xaml.Diagram.QuickCommandViewModel.html#Syncfusion_UI_Xaml_Diagram_QuickCommandViewModel_Margin) is an absolute value used to add some blank space in any one of its four sides.
+* [OffsetX](https://help.syncfusion.com/cr/wpf/Syncfusion.UI.Xaml.Diagram.QuickCommandViewModel.html#Syncfusion_UI_Xaml_Diagram_QuickCommandViewModel_OffsetX) and [OffsetY](https://help.syncfusion.com/cr/wpf/Syncfusion.UI.Xaml.Diagram.QuickCommandViewModel.html#Syncfusion_UI_Xaml_Diagram_QuickCommandViewModel_OffsetY) property of QuickCommand is used to align the QuickCommand based on fractions. The default value is 0.5.
+* [HorizontalAlignment](https://help.syncfusion.com/cr/wpf/Syncfusion.UI.Xaml.Diagram.QuickCommandViewModel.html#Syncfusion_UI_Xaml_Diagram_QuickCommandViewModel_HorizontalAlignment) and [VerticalAlignment](https://help.syncfusion.com/cr/wpf/Syncfusion.UI.Xaml.Diagram.QuickCommandViewModel.html#Syncfusion_UI_Xaml_Diagram_QuickCommandViewModel_VerticalAlignment) properties are used to align the quick commands for horizontal and vertical positions.
+* [Margin](https://help.syncfusion.com/cr/wpf/Syncfusion.UI.Xaml.Diagram.QuickCommandViewModel.html#Syncfusion_UI_Xaml_Diagram_QuickCommandViewModel_Margin) is an absolute value used to add some blank space in any one of its four sides.
The Alignment of QuickCommand is similar to [Annotation Alignment](https://help.syncfusion.com/wpf/sfdiagram/annotation/positioningandappearance).