Skip to content

Commit b95e00d

Browse files
Update README.md
1 parent 4d0469f commit b95e00d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ This example illustrates to bind the Button command to ViewModel in [WPF TreeGri
44

55
You can load a button for the columns in TreeGrid using [TreeGridTemplateColumn](https://help.syncfusion.com/cr/wpf/Syncfusion.UI.Xaml.TreeGrid.TreeGridTemplateColumn.html). When loading the buttons, you can bind a command in ViewModel using ElementName binding.
66

7+
In the following example, ViewModel command receives the underlying data object as command parameter, since the DataContext is bound as command parameter.
8+
79
### XAML:
810
``` xml
911
<syncfusion:TreeGridTemplateColumn MappingName="Title"
@@ -18,4 +20,4 @@ You can load a button for the columns in TreeGrid using [TreeGridTemplateColumn]
1820
</syncfusion:TreeGridTemplateColumn>
1921
```
2022

21-
![How to Bind Button Command to ViewModel in WPF / UWP TreeGrid in MVVM](Bind_button_command_to_viewmodel.png)
23+
![How to Bind Button Command to ViewModel in WPF / UWP TreeGrid in MVVM](Bind_button_command_to_viewmodel.png)

0 commit comments

Comments
 (0)