Skip to content

ES-892019 Resolved the WPF UG mistakes #1445

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 33 additions & 33 deletions wpf/Multi-Column-DropDown/Data-Binding.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,25 +19,25 @@ You can populate the drop down list for SfMultiColumnDropDownControl by setting
<RowDefinition Height="400" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<syncfusion:SfMultiColumnDropDownControl x:Name=sfMultiColumn
Width=175
Height=”30”
<syncfusion:SfMultiColumnDropDownControl x:Name="sfMultiColumn"
Width="175"
Height="30"
Grid.Row="0"
SelectedIndex=”0”
DisplayMember=Title
ValueMember=OrderID
ItemsSource={Binding Orders} />
SelectedIndex="0"
DisplayMember="Title"
ValueMember="OrderID"
ItemsSource="{Binding Orders}" />
<StackPanel Grid.Row="1" Margin="100,0,0,0">
<TextBlock FontSize="16" Text="SelectedItem (Display Member) " />
<TextBlock FontSize="22"
FontWeight="Bold"
Text="{Binding ElementName= sfMultiColumn,
Text="{Binding ElementName= sfMultiColumn,
Mode=TwoWay,
Path=SelectedItem.Title}" />
<TextBlock FontSize="16" Text="SelectedValue (Value Member) " />
<TextBlock FontSize="22"
FontWeight="Bold"
Text="{Binding ElementName= sfMultiColumn,
Text="{Binding ElementName= sfMultiColumn,
Mode=TwoWay,
Path=SelectedValue}" />
</StackPanel>
Expand All @@ -58,19 +58,19 @@ Binding with complex properties

{% tabs %}
{% highlight xaml %}
<syncfusion:SfMultiColumnDropDownControl x:Name=sfMultiColumn
Width=175
Height=”30”
SelectedIndex=”0”
AutoGenerateColumns=false
DisplayMember=ProductDetails.ProductID
ValueMember=ProductDetails.ProductID
ItemsSource={Binding Orders}>
<syncfusion:SfMultiColumnDropDownControl x:Name="sfMultiColumn"
Width="175"
Height="30"
SelectedIndex="0"
AutoGenerateColumns="false"
DisplayMember="ProductDetails.ProductID"
ValueMember="ProductDetails.ProductID"
ItemsSource="{Binding Orders}">
<syncfusion:SfMultiColumnDropDownControl.Columns>
<syncfusion:GridTextColumn MappingName=OrderID />
<syncfusion:GridTextColumn MappingName=ProductDetails.ProductID />
<syncfusion:GridTextColumn MappingName=CustomerID />
<syncfusion:GridTextColumn MappingName=Country />
<syncfusion:GridTextColumn MappingName="OrderID" />
<syncfusion:GridTextColumn MappingName="ProductDetails.ProductID" />
<syncfusion:GridTextColumn MappingName="CustomerID" />
<syncfusion:GridTextColumn MappingName="Country" />
</syncfusion:SfMultiColumnDropDownControl.Columns>
</syncfusion:SfMultiColumnDropDownControl>
{% endhighlight %}
Expand All @@ -82,19 +82,19 @@ Binding with indexer properties

{% tabs %}
{% highlight xaml %}
<syncfusion:SfMultiColumnDropDownControl x:Name=sfMultiColumn
Width=175
Height=”30”
SelectedIndex=”0”
AutoGenerateColumns=false
DisplayMember=Country[0]
ValueMember=Country[0]
ItemsSource={Binding Orders}>
<syncfusion:SfMultiColumnDropDownControl x:Name="sfMultiColumn"
Width="175"
Height="30"
SelectedIndex="0"
AutoGenerateColumns="false"
DisplayMember="Country[0]"
ValueMember="Country[0]"
ItemsSource="{Binding Orders}">
<syncfusion:SfMultiColumnDropDownControl.Columns>
<syncfusion:GridTextColumn MappingName=OrderID />
<syncfusion:GridTextColumn MappingName=ProductID />
<syncfusion:GridTextColumn MappingName=CustomerID />
<syncfusion:GridTextColumn MappingName=Country[0] />
<syncfusion:GridTextColumn MappingName="OrderID" />
<syncfusion:GridTextColumn MappingName="ProductID" />
<syncfusion:GridTextColumn MappingName="CustomerID" />
<syncfusion:GridTextColumn MappingName="Country[0]" />
</syncfusion:SfMultiColumnDropDownControl.Columns>
</syncfusion:SfMultiColumnDropDownControl>
{% endhighlight %}
Expand Down
14 changes: 7 additions & 7 deletions wpf/Multi-Column-DropDown/Editing-and-AutoComplete.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,14 +115,14 @@ You can access the text displayed in the Textbox by using [SfMultiColumnDropDown
<ColumnDefinition Width="400" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<syncfusion:SfMultiColumnDropDownControl x:Name=sfmultiColumn
Width=175
Height=”30”
<syncfusion:SfMultiColumnDropDownControl x:Name="sfmultiColumn"
Width="175"
Height="30"
Grid.Column="0"
SelectedIndex=”0”
DisplayMember=Cast
ValueMember=Title
ItemsSource={Binding Orders} />
SelectedIndex="0"
DisplayMember="Cast"
ValueMember="Title"
ItemsSource="{Binding Orders}" />
<StackPanel Grid.Column="1" Margin="0,100,0,0">
<TextBlock FontSize="16" Text="MultiColumnDropDownControl text " />
<TextBlock FontSize="22"
Expand Down
84 changes: 42 additions & 42 deletions wpf/Multi-Column-DropDown/Getting-Started.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,13 +92,13 @@ In order to add control manually in XAML, do the below steps,
{% tabs %}
{% highlight xaml %}
<Window
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>
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">
<Grid>
<syncfusion:SfMultiColumnDropDownControl x:Name=sfmultiColumn/>
<syncfusion:SfMultiColumnDropDownControl x:Name="sfmultiColumn"/>
</Grid>
</Window>
{% endhighlight %}
Expand Down Expand Up @@ -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 %}
Expand All @@ -249,22 +249,22 @@ Bind the collection created in previous step to `ItemsSource` property by settin
{% tabs %}
{% highlight xaml %}
<Window
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>
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">
<Window.DataContext>
<local:ViewModel/>
</Window.DataContext>
<Grid x:Name=Root_Grid>
<syncfusion:SfMultiColumnDropDownControl x:Name=sfMultiColumn
ItemsSource={Binding Orders}
DisplayMember=OrderID
Width=175
Height=”30”
SelectedIndex=”2”/>
<Grid x:Name="Root_Grid">
<syncfusion:SfMultiColumnDropDownControl x:Name="sfMultiColumn"
ItemsSource="{Binding Orders}"
DisplayMember="OrderID"
Width="175"
Height="30"
SelectedIndex="2"/>
</Grid>
</Window>
{% endhighlight %}
Expand All @@ -287,26 +287,26 @@ By default, the SfMultiColumnDropDownControl generates the columns automatically

{% tabs %}
{% highlight xaml %}
<syncfusion:SfMultiColumnDropDownControl x:Name=sfMultiColumn
Width=175
Height=”30”
SelectedIndex=”0”
AutoGenerateColumns=false
DisplayMember=OrderID
ItemsSource={Binding Orders}>
<syncfusion:SfMultiColumnDropDownControl x:Name="sfMultiColumn"
Width="175"
Height="30"
SelectedIndex="0"
AutoGenerateColumns="false"
DisplayMember="OrderID"
ItemsSource="{Binding Orders}">
<syncfusion:SfMultiColumnDropDownControl.Columns>
<syncfusion:GridTextColumn MappingName=OrderID />
<syncfusion:GridTextColumn MappingName=CustomerID />
<syncfusion:GridTextColumn MappingName=Country />
<syncfusion:GridTextColumn MappingName="OrderID" />
<syncfusion:GridTextColumn MappingName="CustomerID" />
<syncfusion:GridTextColumn MappingName="Country" />
</syncfusion:SfMultiColumnDropDownControl.Columns>
</syncfusion:SfMultiColumnDropDownControl>
{% 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 %}

Expand Down
2 changes: 1 addition & 1 deletion wpf/TreeGrid/Column-Sizing.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ While setting the `TreeGrid.ColumnSizer` property, all column widths are calcula
<td>
<code>AutoFillColumn</code>
</td>
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.
<td>
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.
</td>
</tr>
<tr>
Expand Down