You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: wpf/Add-Syncfusion-Controls.md
+34-19Lines changed: 34 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,27 +18,28 @@ The Syncfusion WPF controls can be added in a Visual Studio projects by using ei
18
18
19
19
Syncfusion UI for WPF are added automatically to the Visual Studio Toolbox during installation. The following steps help you to add the required Essential WPF control using drag and drop from the Toolbox. For example: **SfTextBoxExt**
20
20
21
-
1) Create a WPF project in Visual Studio.
21
+
1. Create a WPF project in Visual Studio.
22
22
23
-
2) Find **SfTextBoxExt** by typing the name of the "SfTextBoxExt" in the search box.
23
+
2. Find **SfTextBoxExt** by typing the name of the "SfTextBoxExt" in the search box.
24
24
25
25

26
26
27
-
3) Drag **SfTextBoxExt** and drop it in the designer.
27
+
3. Drag **SfTextBoxExt** and drop it in the designer.
The following steps help you to add a required Essential WPF Control using XAML Code, for example: **SfTextBoxExt**.
34
34
35
-
1) Create a WPF project in Visual Studio and refer the following assemblies:
35
+
1. Create a WPF project in Visual Studio and refer the following assemblies:
36
36
37
-
* Syncfusion.SfInput.WPF.dll
38
-
* Syncfusion.SfShared.WPF.dll
37
+
* Syncfusion.SfInput.WPF.dll
38
+
* Syncfusion.SfShared.WPF.dll
39
39
40
-
2) Include an XML namespace for the above assemblies to the Main window.
40
+
2. Include an XML namespace for the above assemblies to the Main window.
41
41
42
+
{% capture codesnippet1 %}
42
43
{% tabs %}
43
44
44
45
{% highlight XAML %}
@@ -51,9 +52,12 @@ The following steps help you to add a required Essential WPF Control using XAML
51
52
{% endhighlight %}
52
53
53
54
{% endtabs %}
55
+
{% endcapture %}
56
+
{{ codesnippet1 | OrderList_Indent_Level_1 }}
54
57
55
-
3) Now, add the SfTextBoxExt control with a required optimal name using the included namespace.
58
+
3. Now, add the SfTextBoxExt control with a required optimal name using the included namespace.
56
59
60
+
{% capture codesnippet2 %}
57
61
{% tabs %}
58
62
59
63
{% highlight XAML %}
@@ -63,18 +67,21 @@ The following steps help you to add a required Essential WPF Control using XAML
63
67
{% endhighlight %}
64
68
65
69
{% endtabs %}
70
+
{% endcapture %}
71
+
{{ codesnippet2 | OrderList_Indent_Level_1 }}
66
72
67
73
## Using Code-Behind
68
74
69
75
Syncfusion UI for WPF can be added at runtime using C# / VB. The following steps help you to add required Essential WPF control using code. For example: **SfTextBoxExt**.
70
76
71
-
1) Create a WPF project in Visual Studio and refer to the following assemblies:
77
+
1. Create a WPF project in Visual Studio and refer to the following assemblies:
72
78
73
-
* Syncfusion.SfInput.WPF.dll
74
-
* Syncfusion.SfShared.WPF.dll
79
+
* Syncfusion.SfInput.WPF.dll
80
+
* Syncfusion.SfShared.WPF.dll
75
81
76
-
2) Create an instance of **SfTextBoxExt**, using its namespace.
82
+
2. Create an instance of **SfTextBoxExt**, using its namespace.
77
83
84
+
{% capture codesnippet3 %}
78
85
{% tabs %}
79
86
80
87
{% highlight C# %}
@@ -90,9 +97,12 @@ Dim textBoxExt1 As New Syncfusion.Windows.Controls.Input.SfTextBoxExt()
90
97
{% endhighlight %}
91
98
92
99
{% endtabs %}
100
+
{% endcapture %}
101
+
{{ codesnippet3 | OrderList_Indent_Level_1 }}
93
102
94
-
3) Set the Size and Alignment of the control with required value.
103
+
3. Set the Size and Alignment of the control with required value.
@@ -179,12 +194,12 @@ N> Minimum target Framework is 4.0 for Syncfusion WPF project templates.
179
194
180
195

181
196
182
-
4) Once the Project Configuration Wizard is done, the Syncfusion WPF project is created with required references and XAML.
197
+
4. Once the Project Configuration Wizard is done, the Syncfusion WPF project is created with required references and XAML.
183
198
184
199

185
200
186
201

187
202
188
-
5) Then, Syncfusion licensing registration required message box will be shown as follows, if you have installed the trial setup or NuGet packages since Syncfusion introduced the licensing system with the 2018 Volume 2 (v16.2.0.41) Essential Studio release. Please navigate to the [help topic](https://help.syncfusion.com/common/essential-studio/licensing/license-key#how-to-generate-syncfusion-license-key), which is shown in the licensing message box to generate and register the Syncfusion license key for your project. Refer to this [blog](https://blog.syncfusion.com/post/Whats-New-in-2018-Volume-2-Licensing-Changes-in-the-1620x-Version-of-Essential-Studio.aspx) post for understanding the licensing changes introduced in Essential Studio.
203
+
5. Then, Syncfusion licensing registration required message box will be shown as follows, if you have installed the trial setup or NuGet packages since Syncfusion introduced the licensing system with the 2018 Volume 2 (v16.2.0.41) Essential Studio release. Please navigate to the [help topic](https://help.syncfusion.com/common/essential-studio/licensing/license-key#how-to-generate-syncfusion-license-key), which is shown in the licensing message box to generate and register the Syncfusion license key for your project. Refer to this [blog](https://blog.syncfusion.com/post/Whats-New-in-2018-Volume-2-Licensing-Changes-in-the-1620x-Version-of-Essential-Studio.aspx) post for understanding the licensing changes introduced in Essential Studio.
Copy file name to clipboardExpand all lines: wpf/Autocomplete/Getting-Started.md
+19-4Lines changed: 19 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ documentation: ug
13
13
14
14
Refer to this [Control Dependencies](https://help.syncfusion.com/wpf/control-dependencies#sftextboxext) section to get the list of assemblies or NuGet package that needs to be added as a reference to use the control in any application.
15
15
16
-
Refer to this [How to install nuget packages](https://help.syncfusion.com/wpf/nuget-packages) documentation to find more details about installing the NuGet package in a WPF application.
16
+
Refer to this [How to install nuget packages](https://help.syncfusion.com/wpf/welcome-to-syncfusion-essential-wpf) documentation to find more details about installing the NuGet package in a WPF application.
17
17
18
18
## Creating a simple application
19
19
@@ -42,6 +42,7 @@ To add the control manually in XAML, follow the given steps:
42
42
2. Import Syncfusion WPF schema **http://schemas.syncfusion.com/wpf** in the XAML page.
43
43
3. Declare the [SfTextBoxExt](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.Controls.Input.SfTextBoxExt.html) control in the XAML page.
44
44
45
+
{% capture codesnippet1 %}
45
46
{% tabs %}
46
47
{% highlight XAML %}
47
48
@@ -64,6 +65,8 @@ To add the control manually in XAML, follow the given steps:
64
65
65
66
{% endhighlight %}
66
67
{% endtabs %}
68
+
{% endcapture %}
69
+
{{ codesnippet1 | OrderList_Indent_Level_1 }}
67
70
68
71
### Add a control manually in C#
69
72
@@ -75,6 +78,7 @@ To add the control manually in C#, follow the given steps:
75
78
2. Import the [SfTextBoxExt](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.Controls.Input.SfTextBoxExt.html) namespace using **Syncfusion.Windows.Controls.Input;**.
76
79
3. Create an [SfTextBoxExt](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.Controls.Input.SfTextBoxExt.html) instance, and add it to the window.
@@ -111,8 +117,9 @@ AutoComplete is a data-bound control. So before create binding to the control, y
111
117
112
118
For illustration, let us create a textbox, which will populate a list of employees.
113
119
114
-
1.Create data object class named **Employee** and declare properties as shown below,
120
+
1.Create data object class named **Employee** and declare properties as shown below,
115
121
122
+
{% capture codesnippet3 %}
116
123
{% highlight c# %}
117
124
118
125
public class Employee
@@ -134,10 +141,13 @@ public class Employee
134
141
}
135
142
136
143
{% endhighlight %}
144
+
{% endcapture %}
145
+
{{ codesnippet3 | OrderList_Indent_Level_1 }}
137
146
138
147
139
-
2.Create a **EmployeeViewModel** class with Employees property and Employees property is initialized with several data objects in constructor.
148
+
2.Create a **EmployeeViewModel** class with Employees property and Employees property is initialized with several data objects in constructor.
140
149
150
+
{% capture codesnippet4 %}
141
151
{% highlight c# %}
142
152
143
153
public class EmployeeViewModel
@@ -165,12 +175,15 @@ public class Employee
165
175
}
166
176
167
177
{% endhighlight %}
178
+
{% endcapture %}
179
+
{{ codesnippet4 | OrderList_Indent_Level_1 }}
168
180
169
-
3.To populate the AutoComplete with data, set the [AutoCompleteSource](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.Controls.Input.SfTextBoxExt.html#Syncfusion_Windows_Controls_Input_SfTextBoxExt_AutoCompleteSource) property to `IEnumerable` implementation.
181
+
3.To populate the AutoComplete with data, set the [AutoCompleteSource](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.Controls.Input.SfTextBoxExt.html#Syncfusion_Windows_Controls_Input_SfTextBoxExt_AutoCompleteSource) property to `IEnumerable` implementation.
170
182
171
183
172
184
Bind the collection created in previous step to [AutoCompleteSource](https://help.syncfusion.com/cr/wpf/Syncfusion.Windows.Controls.Input.SfTextBoxExt.html#Syncfusion_Windows_Controls_Input_SfTextBoxExt_AutoCompleteSource) property in XAML by setting EmployeeViewModel as `DataContext`.
173
185
186
+
{% capture codesnippet5 %}
174
187
{% tabs %}
175
188
{% highlight xaml %}
176
189
@@ -215,6 +228,8 @@ this.Content = textBoxExt;
215
228
{% endhighlight %}
216
229
217
230
{% endtabs %}
231
+
{% endcapture %}
232
+
{{ codesnippet5 | OrderList_Indent_Level_1 }}
218
233
219
234
For further details, refer to [AutoComplete source](https://help.syncfusion.com/wpf/autocomplete/autocomplete-and-filtering#autocomplete-source).
Copy file name to clipboardExpand all lines: wpf/Breadcrumb/Command-Binding.md
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,7 @@ The steps to listen to the command binding are as follows:
15
15
16
16
1. Create a DelegateCommand class inherited from ICommand, which will be used in the ViewModel sample class.
17
17
18
+
{% capture codesnippet1 %}
18
19
{% tabs %}
19
20
{% highlight c# %}
20
21
@@ -49,9 +50,12 @@ public class DelegateCommand : ICommand
49
50
50
51
{% endhighlight %}
51
52
{% endtabs %}
53
+
{% endcapture %}
54
+
{{ codesnippet1 | OrderList_Indent_Level_1 }}
52
55
53
56
2. Create the ViewModel sample class, to bind the command in the sample WPF application.
54
57
58
+
{% capture codesnippet2 %}
55
59
{% tabs %}
56
60
{% highlight c# %}
57
61
@@ -90,10 +94,13 @@ public class ViewModel : INotifyPropertyChanged
90
94
91
95
{% endhighlight %}
92
96
{% endtabs %}
97
+
{% endcapture %}
98
+
{{ codesnippet2 | OrderList_Indent_Level_1 }}
93
99
94
100
1. Bind the command in the HierarchyNavigator control.
95
101
2. To do this, create a new instance of the ViewModel sample class and set DataContext for the parent StackPanel. This will reflect changes in the children. Whenever the selected item changes, the TextBox Text value will change.
96
102
103
+
{% capture codesnippet3 %}
97
104
{% tabs %}
98
105
{% highlight xaml %}
99
106
@@ -111,3 +118,5 @@ public class ViewModel : INotifyPropertyChanged
0 commit comments