From 73d96739b8f1f8c97f1365f7f03987c1f9c06cea Mon Sep 17 00:00:00 2001 From: Swathi Date: Tue, 23 Jul 2024 17:31:36 +0530 Subject: [PATCH 1/2] ES-892019 Resolved the WPF UG mistakes --- wpf/Multi-Column-DropDown/Data-Binding.md | 66 +++++++-------- .../Editing-and-AutoComplete.md | 14 ++-- wpf/Multi-Column-DropDown/Getting-Started.md | 84 +++++++++---------- wpf/TreeGrid/Column-Sizing.md | 2 +- 4 files changed, 83 insertions(+), 83 deletions(-) diff --git a/wpf/Multi-Column-DropDown/Data-Binding.md b/wpf/Multi-Column-DropDown/Data-Binding.md index ccaaea1ba..c48f1917b 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 25637fa5a..00fb60486 100644 --- a/wpf/Multi-Column-DropDown/Editing-and-AutoComplete.md +++ b/wpf/Multi-Column-DropDown/Editing-and-AutoComplete.md @@ -115,14 +115,14 @@ You can access the text displayed in the Textbox by using [SfMultiColumnDropDown - + SelectedIndex="0" + DisplayMember="Cast" + ValueMember="Title" + ItemsSource="{Binding Orders}" /> + 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/TreeGrid/Column-Sizing.md b/wpf/TreeGrid/Column-Sizing.md index acbe2d1ea..14ccbc6c7 100644 --- a/wpf/TreeGrid/Column-Sizing.md +++ b/wpf/TreeGrid/Column-Sizing.md @@ -50,8 +50,8 @@ While setting the `TreeGrid.ColumnSizer` property, all column widths are calcula AutoFillColumn -While setting the `TreeGrid.ColumnSizer` property, all column widths are calculated based on content of cell and the last column fills the remaining column width as auto fill. And possible to set any column to fill the remaining space instead of last column by setting `TreeGridColumn.ColumnSizer` as `AutoFillColumn` for that particular column. +While setting the `TreeGrid.ColumnSizer` property, all column widths are calculated based on content of cell and the last column fills the remaining column width as auto fill. And possible to set any column to fill the remaining space instead of last column by setting `TreeGridColumn.ColumnSizer` as `AutoFillColumn` for that particular column. From 054b24925508b026258c86eef72e7dd9faf5e718 Mon Sep 17 00:00:00 2001 From: Swathi Date: Tue, 23 Jul 2024 19:55:36 +0530 Subject: [PATCH 2/2] ES-892019 Removed the unwanted changes --- wpf/Multi-Column-DropDown/Data-Binding.md | 4 ++-- wpf/Multi-Column-DropDown/Getting-Started.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wpf/Multi-Column-DropDown/Data-Binding.md b/wpf/Multi-Column-DropDown/Data-Binding.md index c48f1917b..468900357 100644 --- a/wpf/Multi-Column-DropDown/Data-Binding.md +++ b/wpf/Multi-Column-DropDown/Data-Binding.md @@ -31,13 +31,13 @@ You can populate the drop down list for SfMultiColumnDropDownControl by setting diff --git a/wpf/Multi-Column-DropDown/Getting-Started.md b/wpf/Multi-Column-DropDown/Getting-Started.md index ba4eb2ef5..694972509 100644 --- a/wpf/Multi-Column-DropDown/Getting-Started.md +++ b/wpf/Multi-Column-DropDown/Getting-Started.md @@ -229,7 +229,7 @@ public class ViewModel _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(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"));