diff --git a/ComboBoxInsideTemplate.png b/ComboBoxInsideTemplate.png new file mode 100644 index 0000000..20fc550 Binary files /dev/null and b/ComboBoxInsideTemplate.png differ diff --git a/README.md b/README.md index e9a1170..aa5bbf3 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,22 @@ -# how-to-bind-view-model-ItemsSource-to-combo-box-inside-template-in-wpf-and-uwp-treegrid-in-mvvm +# How to Bind ViewModel ItemsSource to ComboBox inside Template in WPF / UWP TreeGrid in MVVM? -This example illustrates to bind the ComBox ItemsSource that is loaded inside the template column. \ No newline at end of file +This example illustrates to bind the ComboBox ItemsSource that is loaded inside the template column in [WPF TreeGrid](https://www.syncfusion.com/wpf-controls/treegrid) and [UWP TreeGrid](https://www.syncfusion.com/uwp-ui-controls/treegrid) (SfTreeGrid). + +You can load a ComboBox inside [TreeGridTemplateColumn](https://help.syncfusion.com/cr/wpf/Syncfusion.UI.Xaml.TreeGrid.TreeGridTemplateColumn.html) and bind the ItemsSource from ViewModel to ComboBox using ElementName binding. + +```xml + + + + + + + + + + + + +``` + +![Loading ItemsSource to combobox inside Template](ComboBoxInsideTemplate.png) \ No newline at end of file