diff --git a/wpf-toc.html b/wpf-toc.html
index 1247bda5b..e8a4b44f8 100644
--- a/wpf-toc.html
+++ b/wpf-toc.html
@@ -1945,7 +1945,7 @@
Accessibility
-
+
SfTreeGrid
diff --git a/wpf/DataGrid/drag-and-drop.md b/wpf/DataGrid/drag-and-drop.md
index 6dfac1236..aadfc2095 100644
--- a/wpf/DataGrid/drag-and-drop.md
+++ b/wpf/DataGrid/drag-and-drop.md
@@ -201,13 +201,8 @@ this.sfDataGrid.RowDragDropController.Drop += RowDragDropController_Drop;
private void RowDragDropController_Drop(object sender, GridRowDropEventArgs e)
{
- var record = e.TargetRecord;
- if (record == null)
- return;
- var orders = (record as RecordEntry).Data as Orders;
- // You can restrict the dropping for certain rows based on the target record value also.
- var rowIndex = this.sfDataGrid.ResolveToRowIndex(orders);
- var recordIndex = this.sfDataGrid.ResolveToRecordIndex(rowIndex);
+ int recordIndex = (int)e.TargetRecord;
+ //You can restrict the dropping for certain rows based on the target record index.
if (recordIndex > 5)
e.Handled = true;
}
diff --git a/wpf/Multi-Column-DropDown/Columns.md b/wpf/Multi-Column-DropDown/Columns.md
index ecb94fe61..b4bc5812b 100644
--- a/wpf/Multi-Column-DropDown/Columns.md
+++ b/wpf/Multi-Column-DropDown/Columns.md
@@ -43,9 +43,9 @@ SfMultiColumnDropDownControl control allows you to define the columns manually b
{% highlight c# %}
SfMultiColumnDropDownControl sfMultiColumn = new SfMultiColumnDropDownControl();
sfMultiColumn.AutoGenerateColumns = false;
-sfMultiColumn.Columns.Add(new GridCurrencyColumn() { MappingName = “OrderID” });
-sfMultiColumn.Columns.Add(new GridTextColumn() { MappingName = “CustomerID” });
-sfMultiColumn.Columns.Add(new GridTextColumn() { MappingName = “Country” });
+sfMultiColumn.Columns.Add(new GridCurrencyColumn() { MappingName = "OrderID" });
+sfMultiColumn.Columns.Add(new GridTextColumn() { MappingName = "CustomerID" });
+sfMultiColumn.Columns.Add(new GridTextColumn() { MappingName = "Country" });
{% endhighlight %}
{% endtabs %}
diff --git a/wpf/Multi-Column-DropDown/Data-Binding.md b/wpf/Multi-Column-DropDown/Data-Binding.md
index 734f4e50f..292e172f9 100644
--- a/wpf/Multi-Column-DropDown/Data-Binding.md
+++ b/wpf/Multi-Column-DropDown/Data-Binding.md
@@ -19,25 +19,25 @@ You can populate the drop down list for SfMultiColumnDropDownControl by setting
-
+ SelectedIndex="0"
+ DisplayMember="Title"
+ ValueMember="OrderID"
+ ItemsSource="{Binding Orders}" />
@@ -58,19 +58,19 @@ Binding with complex properties
{% tabs %}
{% highlight xaml %}
-
+
-
-
-
-
+
+
+
+
{% endhighlight %}
@@ -82,19 +82,19 @@ Binding with indexer properties
{% tabs %}
{% highlight xaml %}
-
+
-
-
-
-
+
+
+
+
{% endhighlight %}
diff --git a/wpf/Multi-Column-DropDown/Editing-and-AutoComplete.md b/wpf/Multi-Column-DropDown/Editing-and-AutoComplete.md
index 72941ba8c..08a4a367c 100644
--- a/wpf/Multi-Column-DropDown/Editing-and-AutoComplete.md
+++ b/wpf/Multi-Column-DropDown/Editing-and-AutoComplete.md
@@ -113,24 +113,24 @@ You can access the text displayed in the Textbox by using [SfMultiColumnDropDown
-
+
-
+ SelectedIndex="0"
+ DisplayMember="Cast"
+ ValueMember="Title"
+ ItemsSource="{Binding Orders}" />
-
-
+
-
+
{% endhighlight %}
{% highlight c# %}
diff --git a/wpf/Multi-Column-DropDown/Filtering.md b/wpf/Multi-Column-DropDown/Filtering.md
index 6b9f82d4f..daa824896 100644
--- a/wpf/Multi-Column-DropDown/Filtering.md
+++ b/wpf/Multi-Column-DropDown/Filtering.md
@@ -15,7 +15,7 @@ By default, drop down list is filtered based on `SearchCondition.StartsWith` con
{% tabs %}
{% highlight xml %}
-
+ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+ xmlns:syncfusion="http://schemas.syncfusion.com/wpf"
+ x:Class="WpfApplication1.MainWindow"
+ Title="MainWindow" Height="350" Width="525">
-
+
{% endhighlight %}
@@ -224,16 +224,16 @@ public class ViewModel
private void GenerateOrders()
{
- _orders.Add(new OrderInfo(1001, “Maria Anders”, “Germany”, “ALFKI”, “Berlin”));
- _orders.Add(new OrderInfo(1002, “Ana Trujilo”, “Mexico”, “ANATR”, “Mexico D.F.”));
- _orders.Add(new OrderInfo(1003, “Antonio Moreno”, “Mexico”, “ANTON”, “Mexico D.F.”));
- _orders.Add(new OrderInfo(1004, “Thomas Hardy”, “UK”, “AROUT”, “London”));
- _orders.Add(new OrderInfo(1005, “Christina Berglund”, “Sweden”, “BERGS”, “Lula”));
- _orders.Add(new OrderInfo(1006, “Hanna Moos”, “Germany”, “BLAUS”, “Mannheim”));
- _orders.Add(new OrderInfo(1007, “Frederique Citeaux”, “France”, “BLONP”, “Strasbourg”));
- _orders.Add(new OrderInfo(1008, “Martin Sommer”, “Spain”, “BOLID”, “Madrid”));
- _orders.Add(new OrderInfo(1009, “Laurence Lebihan”, “France”, “BONAP”, “Marseille”));
- _orders.Add(new OrderInfo(1010, “Elizabeth Lincoln”, “Canada”, “BOTTM”, “Tsawassen”));
+ _orders.Add(new OrderInfo(1001, "Maria Anders", "Germany", "ALFKI", "Berlin"));
+ _orders.Add(new OrderInfo(1002, "Ana Trujilo", "Mexico", "ANATR", "Mexico D.F."));
+ _orders.Add(new OrderInfo(1003, "Antonio Moreno", "Mexico", "ANTON", "Mexico D.F."));
+ _orders.Add(new OrderInfo(1004, "Thomas Hardy", "UK", "AROUT", "London"));
+ _orders.Add(new OrderInfo(1005, "Christina Berglund", "Sweden", "BERGS", "Lula"));
+ _orders.Add(new OrderInfo(1006, "Hanna Moos", "Germany", "BLAUS", "Mannheim"));
+ _orders.Add(new OrderInfo(1007, "Frederique Citeaux", "France", "BLONP", "Strasbourg"));
+ _orders.Add(new OrderInfo(1008, "Martin Sommer", "Spain", "BOLID", "Madrid"));
+ _orders.Add(new OrderInfo(1009, "Laurence Lebihan", "France", "BONAP", "Marseille"));
+ _orders.Add(new OrderInfo(1010, "Elizabeth Lincoln", "Canada", "BOTTM", "Tsawassen"));
}
}
{% endhighlight %}
@@ -249,22 +249,22 @@ Bind the collection created in previous step to `ItemsSource` property by settin
{% tabs %}
{% highlight xaml %}
+ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+ xmlns:syncfusion="http://schemas.syncfusion.com/wpf"
+ x:Class="WpfApplication1.MainWindow"
+ xmlns:local="clr-namespace:WpfApplication1"
+ Title="MainWindow" Height="350" Width="525">
-
-
+
+
{% endhighlight %}
@@ -287,26 +287,26 @@ By default, the SfMultiColumnDropDownControl generates the columns automatically
{% tabs %}
{% highlight xaml %}
-
+
-
-
-
+
+
+
{% endhighlight %}
{% highlight c# %}
SfMultiColumnDropDownControl sfMultiColumn = new SfMultiColumnDropDownControl();
sfMultiColumn.AutoGenerateColumns = false;
-sfMultiColumn.Columns.Add(new GridTextColumn() { MappingName = “OrderID” });
-sfMultiColumn.Columns.Add(new GridTextColumn() { MappingName = “CustomerID” });
-sfMultiColumn.Columns.Add(new GridTextColumn() { MappingName = “Country” });
+sfMultiColumn.Columns.Add(new GridTextColumn() { MappingName = "OrderID" });
+sfMultiColumn.Columns.Add(new GridTextColumn() { MappingName = "CustomerID" });
+sfMultiColumn.Columns.Add(new GridTextColumn() { MappingName = "Country" });
{% endhighlight %}
{% endtabs %}
diff --git a/wpf/Multi-Column-DropDown/Selection.md b/wpf/Multi-Column-DropDown/Selection.md
index e9ed67052..46aaad602 100644
--- a/wpf/Multi-Column-DropDown/Selection.md
+++ b/wpf/Multi-Column-DropDown/Selection.md
@@ -19,17 +19,17 @@ By default, you can select only one item at a time from the dropdown, as the def
{% tabs %}
{% highlight xml %}
-
+
{% endhighlight %}
{% highlight c# %}
using Syncfusion.UI.Xaml.Grid;
-this.MultiColumnDropDown.SelectionMode = DropDownSelectionMode.Single;
+this.sfMultiColumn.SelectionMode = DropDownSelectionMode.Single;
{% endhighlight %}
{% endtabs %}
@@ -47,17 +47,17 @@ You can select multiple rows at same time by setting [SelectionMode](https://hel
{% capture codesnippet1 %}
{% tabs %}
{% highlight xml %}
-
+
{% endhighlight %}
{% highlight c# %}
using Syncfusion.UI.Xaml.Grid;
-this.MultiColumnDropDown.SelectionMode = DropDownSelectionMode.Multiple;
+this.sfMultiColumn.SelectionMode = DropDownSelectionMode.Multiple;
{% endhighlight %}
{% endtabs %}
{% endcapture %}
@@ -73,18 +73,18 @@ By default, selected values in the editor are separated by `;`. You can change t
{% tabs %}
{% highlight xml %}
-
+
{% endhighlight %}
{% highlight c# %}
using Syncfusion.UI.Xaml.Grid;
-this.MultiColumnDropDown.SeparatorString = "-";
+this.sfMultiColumn.SeparatorString = "-";
{% endhighlight %}
{% endtabs %}
@@ -109,10 +109,10 @@ xmlns:interactivity="http://schemas.microsoft.com/expression/2010/interactivity"
-
+
-
+
@@ -124,7 +124,7 @@ xmlns:interactivity="http://schemas.microsoft.com/expression/2010/interactivity"
-
+ Command="{Binding Path=DataContext.PopupOpening, ElementName=sfMultiColumn}"
+ CommandParameter="{Binding ElementName=sfMultiColumn}" />
@@ -219,7 +219,7 @@ You can handle the selection operations in SfMultiColumnDropDownControl by using
{% tabs %}
{% highlight c# %}
-MultiColumnDropDown.SelectionChanged += MultiColumnDropDown_SelectionChanged;
+sfMultiColumn.SelectionChanged += MultiColumnDropDown_SelectionChanged;
void MultiColumnDropDown_SelectionChanged(object sender, Syncfusion.UI.Xaml.Grid.SelectionChangedEventArgs args)
{