Skip to content

Commit 1b789ea

Browse files
committed
ES-949556_Master Need to resolve the WPF UG mistakes
1 parent 8746469 commit 1b789ea

File tree

8 files changed

+135
-140
lines changed

8 files changed

+135
-140
lines changed

wpf-toc.html

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1945,7 +1945,7 @@
19451945
<li><a href="/wpf/TreeMap/accessibility">Accessibility</a></li>
19461946
</ul>
19471947
</li>
1948-
<li>
1948+
<li>
19491949
SfTreeGrid
19501950
<ul>
19511951
<li><a href="/wpf/TreeGrid/Getting-Started">Getting Started</a></li>
@@ -1960,22 +1960,22 @@
19601960
<li><a href="/wpf/TreeGrid/Clipboard-Operations">Clipboard Operations</a></li>
19611961
<li><a href="/wpf/TreeGrid/Node-CheckBox">Node CheckBox</a></li>
19621962
<li><a href="/wpf/TreeGrid/Data-Validation">Data Validation</a></li>
1963-
<li><a href="/wpf/TreeGrid/Interactive-Features">Interactive Features</a></li>
1964-
<li><a href="/wpf/TreeGrid/ToolTip">ToolTip</a></li>
1965-
<li><a href="/wpf/TreeGrid/Rows">Rows</a></li>
1966-
<li><a href="/wpf/TreeGrid/MergeCell">Merge Cells</a></li>
1967-
<li><a href="/wpf/TreeGrid/Localization">Localization</a></li>
1968-
<li><a href="/wpf/TreeGrid/Styles-and-Templates">Styles and Templates</a></li>
1969-
<li><a href="/wpf/TreeGrid/Conditional-Styling">Conditional Styling</a></li>
1963+
<li><a href="/wpf/TreeGrid/Load-On-Demand">Load On Demand</a></li>
1964+
<li><a href="/wpf/TreeGrid/Styles-and-Templates">Styles and Templates</a></li>
1965+
<li><a href="/wpf/TreeGrid/Conditional-Styling">Conditional Styling</a></li>
19701966
<li><a href="/wpf/TreeGrid/GridLines">Grid Lines Customization</a></li>
19711967
<li><a href="/wpf/TreeGrid/Themes">Themes</a></li>
1972-
<li><a href="/wpf/TreeGrid/Printing">Printing</a></li>
1973-
<li><a href="/wpf/TreeGrid/Export-To-Excel">Export To Excel</a></li>
1974-
<li><a href="/wpf/TreeGrid/Export-To-PDF">Export To PDF</a></li>
1975-
<li><a href="/wpf/TreeGrid/MVVM">MVVM</a></li>
1976-
<li><a href="/wpf/TreeGrid/Load-On-Demand">Load On Demand</a></li>
1977-
<li><a href="/wpf/TreeGrid/UI-Automation">UI Automation</a></li>
1978-
<li><a href="/wpf/TreeGrid/Helpers">Helpers</a></li>
1968+
<li><a href="/wpf/TreeGrid/Rows">Rows</a></li>
1969+
<li><a href="/wpf/TreeGrid/MergeCell">Merge Cells</a></li>
1970+
<li><a href="/wpf/TreeGrid/Interactive-Features">Interactive Features</a></li>
1971+
<li><a href="/wpf/TreeGrid/ToolTip">ToolTip</a></li>
1972+
<li><a href="/wpf/TreeGrid/Export-To-Excel">Export To Excel</a></li>
1973+
<li><a href="/wpf/TreeGrid/Export-To-PDF">Export To PDF</a></li>
1974+
<li><a href="/wpf/TreeGrid/Printing">Printing</a></li>
1975+
<li><a href="/wpf/TreeGrid/MVVM">MVVM</a></li>
1976+
<li><a href="/wpf/TreeGrid/Localization">Localization</a></li>
1977+
<li><a href="/wpf/TreeGrid/UI-Automation">UI Automation</a></li>
1978+
<li><a href="/wpf/TreeGrid/Helpers">Helpers</a></li>
19791979
</ul>
19801980
</li>
19811981
<li>

wpf/DataGrid/drag-and-drop.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -201,13 +201,8 @@ this.sfDataGrid.RowDragDropController.Drop += RowDragDropController_Drop;
201201

202202
private void RowDragDropController_Drop(object sender, GridRowDropEventArgs e)
203203
{
204-
var record = e.TargetRecord;
205-
if (record == null)
206-
return;
207-
var orders = (record as RecordEntry).Data as Orders;
208-
// You can restrict the dropping for certain rows based on the target record value also.
209-
var rowIndex = this.sfDataGrid.ResolveToRowIndex(orders);
210-
var recordIndex = this.sfDataGrid.ResolveToRecordIndex(rowIndex);
204+
int recordIndex = (int)e.TargetRecord;
205+
//You can restrict the dropping for certain rows based on the target record index.
211206
if (recordIndex > 5)
212207
e.Handled = true;
213208
}

wpf/Multi-Column-DropDown/Columns.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ SfMultiColumnDropDownControl control allows you to define the columns manually b
4343
{% highlight c# %}
4444
SfMultiColumnDropDownControl sfMultiColumn = new SfMultiColumnDropDownControl();
4545
sfMultiColumn.AutoGenerateColumns = false;
46-
sfMultiColumn.Columns.Add(new GridCurrencyColumn() { MappingName = OrderID });
47-
sfMultiColumn.Columns.Add(new GridTextColumn() { MappingName = CustomerID });
48-
sfMultiColumn.Columns.Add(new GridTextColumn() { MappingName = Country });
46+
sfMultiColumn.Columns.Add(new GridCurrencyColumn() { MappingName = "OrderID" });
47+
sfMultiColumn.Columns.Add(new GridTextColumn() { MappingName = "CustomerID" });
48+
sfMultiColumn.Columns.Add(new GridTextColumn() { MappingName = "Country" });
4949
{% endhighlight %}
5050
{% endtabs %}
5151

wpf/Multi-Column-DropDown/Data-Binding.md

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -19,25 +19,25 @@ You can populate the drop down list for SfMultiColumnDropDownControl by setting
1919
<RowDefinition Height="400" />
2020
<RowDefinition Height="*" />
2121
</Grid.RowDefinitions>
22-
<syncfusion:SfMultiColumnDropDownControl x:Name=sfMultiColumn
23-
Width=175
24-
Height=”30”
22+
<syncfusion:SfMultiColumnDropDownControl x:Name="sfMultiColumn"
23+
Width="175"
24+
Height="30"
2525
Grid.Row="0"
26-
SelectedIndex=”0”
27-
DisplayMember=Title
28-
ValueMember=OrderID
29-
ItemsSource={Binding Orders} />
26+
SelectedIndex="0"
27+
DisplayMember="Title"
28+
ValueMember="OrderID"
29+
ItemsSource="{Binding Orders}" />
3030
<StackPanel Grid.Row="1" Margin="100,0,0,0">
3131
<TextBlock FontSize="16" Text="SelectedItem (Display Member) " />
3232
<TextBlock FontSize="22"
3333
FontWeight="Bold"
34-
Text="{Binding ElementName=sfMultiColumn,
34+
Text="{Binding ElementName=sfMultiColumn,
3535
Mode=TwoWay,
3636
Path=SelectedItem.Title}" />
3737
<TextBlock FontSize="16" Text="SelectedValue (Value Member) " />
3838
<TextBlock FontSize="22"
3939
FontWeight="Bold"
40-
Text="{Binding ElementName=sfMultiColumn,
40+
Text="{Binding ElementName=sfMultiColumn,
4141
Mode=TwoWay,
4242
Path=SelectedValue}" />
4343
</StackPanel>
@@ -58,19 +58,19 @@ Binding with complex properties
5858

5959
{% tabs %}
6060
{% highlight xaml %}
61-
<syncfusion:SfMultiColumnDropDownControl x:Name=sfMultiColumn
62-
Width=175
63-
Height=”30”
64-
SelectedIndex=”0”
65-
AutoGenerateColumns=false
66-
DisplayMember=ProductDetails.ProductID
67-
ValueMember=ProductDetails.ProductID
68-
ItemsSource={Binding Orders}>
61+
<syncfusion:SfMultiColumnDropDownControl x:Name="sfMultiColumn"
62+
Width="175"
63+
Height="30"
64+
SelectedIndex="0"
65+
AutoGenerateColumns="false"
66+
DisplayMember="ProductDetails.ProductID"
67+
ValueMember="ProductDetails.ProductID"
68+
ItemsSource="{Binding Orders}">
6969
<syncfusion:SfMultiColumnDropDownControl.Columns>
70-
<syncfusion:GridTextColumn MappingName=OrderID />
71-
<syncfusion:GridTextColumn MappingName=ProductDetails.ProductID />
72-
<syncfusion:GridTextColumn MappingName=CustomerID />
73-
<syncfusion:GridTextColumn MappingName=Country />
70+
<syncfusion:GridTextColumn MappingName="OrderID" />
71+
<syncfusion:GridTextColumn MappingName="ProductDetails.ProductID" />
72+
<syncfusion:GridTextColumn MappingName="CustomerID" />
73+
<syncfusion:GridTextColumn MappingName="Country" />
7474
</syncfusion:SfMultiColumnDropDownControl.Columns>
7575
</syncfusion:SfMultiColumnDropDownControl>
7676
{% endhighlight %}
@@ -82,19 +82,19 @@ Binding with indexer properties
8282

8383
{% tabs %}
8484
{% highlight xaml %}
85-
<syncfusion:SfMultiColumnDropDownControl x:Name=sfMultiColumn
86-
Width=175
87-
Height=”30”
88-
SelectedIndex=”0”
89-
AutoGenerateColumns=false
90-
DisplayMember=Country[0]
91-
ValueMember=Country[0]
92-
ItemsSource={Binding Orders}>
85+
<syncfusion:SfMultiColumnDropDownControl x:Name="sfMultiColumn"
86+
Width="175"
87+
Height="30"
88+
SelectedIndex="0"
89+
AutoGenerateColumns="false"
90+
DisplayMember="Country[0]"
91+
ValueMember="Country[0]"
92+
ItemsSource="{Binding Orders}">
9393
<syncfusion:SfMultiColumnDropDownControl.Columns>
94-
<syncfusion:GridTextColumn MappingName=OrderID />
95-
<syncfusion:GridTextColumn MappingName=ProductID />
96-
<syncfusion:GridTextColumn MappingName=CustomerID />
97-
<syncfusion:GridTextColumn MappingName=Country[0] />
94+
<syncfusion:GridTextColumn MappingName="OrderID" />
95+
<syncfusion:GridTextColumn MappingName="ProductID" />
96+
<syncfusion:GridTextColumn MappingName="CustomerID" />
97+
<syncfusion:GridTextColumn MappingName="Country[0]" />
9898
</syncfusion:SfMultiColumnDropDownControl.Columns>
9999
</syncfusion:SfMultiColumnDropDownControl>
100100
{% endhighlight %}

wpf/Multi-Column-DropDown/Editing-and-AutoComplete.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -113,24 +113,24 @@ You can access the text displayed in the Textbox by using [SfMultiColumnDropDown
113113
<Grid>
114114
<Grid.ColumnDefinitions>
115115
<ColumnDefinition Width="400" />
116-
<ColumnDefinition Width="*" />
116+
<ColumnDefinition Width="*" />
117117
</Grid.ColumnDefinitions>
118-
<syncfusion:SfMultiColumnDropDownControl x:Name=sfmultiColumn
119-
Width=175
120-
Height=”30”
118+
<syncfusion:SfMultiColumnDropDownControl x:Name="sfmultiColumn"
119+
Width="175"
120+
Height="30"
121121
Grid.Column="0"
122-
SelectedIndex=”0”
123-
DisplayMember=Cast
124-
ValueMember=Title
125-
ItemsSource={Binding Orders} />
122+
SelectedIndex="0"
123+
DisplayMember="Cast"
124+
ValueMember="Title"
125+
ItemsSource="{Binding Orders}" />
126126
<StackPanel Grid.Column="1" Margin="0,100,0,0">
127-
<TextBlock FontSize="16" Text="MultiColumnDropDownControl text " />
128-
<TextBlock FontSize="22"
127+
<TextBlock FontSize="16" Text="MultiColumnDropDownControl text " />
128+
<TextBlock FontSize="22"
129129
FontWeight="Bold"
130130
Text="{Binding ElementName= sfmultiColumn,
131131
Mode=TwoWay,
132132
Path=Text}" />
133-
</StackPanel>
133+
</StackPanel>
134134
</Grid>
135135
{% endhighlight %}
136136
{% highlight c# %}
@@ -142,4 +142,4 @@ var text = this.sfMultiColumn.Text;
142142

143143
## Selecting text when editor got focus
144144

145-
You can select the text displayed in the textbox when it got the focus from any other control by setting [TextSelectionOnFocus](https://help.syncfusion.com/cr/wpf/Syncfusion.UI.Xaml.Grid.SfMultiColumnDropDownControl.html#Syncfusion_UI_Xaml_Grid_SfMultiColumnDropDownControl_TextSelectionOnFocus) property.
145+
You can select the text displayed in the textbox when it got the focus from any other control by setting [TextSelectionOnFocus](https://help.syncfusion.com/cr/wpf/Syncfusion.UI.Xaml.Grid.SfMultiColumnDropDownControl.html#Syncfusion_UI_Xaml_Grid_SfMultiColumnDropDownControl_TextSelectionOnFocus) property.

wpf/Multi-Column-DropDown/Filtering.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ By default, drop down list is filtered based on `SearchCondition.StartsWith` con
1515

1616
{% tabs %}
1717
{% highlight xml %}
18-
<syncfusion:SfMultiColumnDropDownControl x:Name="sfMultiColumn "
18+
<syncfusion:SfMultiColumnDropDownControl x:Name="sfMultiColumn"
1919
Width="175"
2020
Height="30"
2121
AutoGenerateColumns="False"
@@ -79,8 +79,8 @@ public class CustomMultiColumnControl : SfMultiColumnDropDownControl
7979
var _item = item as GrossingMoviesList;
8080
var result = (_item.Title.Contains(this.SearchText)) || (_item.Cast.Contains(this.SearchText));
8181
return result;
82-
}
83-
}
82+
}
83+
}
8484
{% endhighlight %}
8585
{% highlight xml %}
8686
<local:CustomMultiColumnControl x:Name="sfMultiColumn"

0 commit comments

Comments
 (0)