From 1c8e1bcbd3d9611e1fab6f0b37723d82407cfd46 Mon Sep 17 00:00:00 2001 From: Sreemon Premkumar M Date: Thu, 14 Aug 2025 17:22:56 +0530 Subject: [PATCH 1/4] ES-975464 - Resolve ReadMe Length issue in this repository --- README.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a709311..3e04377 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,17 @@ # how-to-bind-button-command-to-view-model-in-wpf-and-uwp-treegrid-in-mvvm -This example illustrates to bind the button command to ViewModel in treegrid. \ No newline at end of file +This example illustrates to bind the `Button` command to ViewModel in [WPF TreeGrid](https://www.syncfusion.com/wpf-controls/treegrid) and [UWP TreeGrid](https://www.syncfusion.com/uwp-ui-controls/treegrid). + +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. + +## XAML code: +``` xml + + + +