This is a migrated thread and some comments may be shown as answers.

PropertyGrid Custom property

1 Answer 30 Views
PropertyGrid
This is a migrated thread and some comments may be shown as answers.
George
Top achievements
Rank 1
George asked on 24 Mar 2014, 05:36 AM
Hi there, 
I need to place button into PropertyDefinition, and bind Command on click this button, which opening window,
How  can I do that?

1 Answer, 1 is accepted

Sort by
0
Hristo
Telerik team
answered on 26 Mar 2014, 08:59 AM
Hello George,

You can achieve the desired behavior by using the DelegateCommand class (located in Telerik.Windows.Controls assembly). In the ViewModel, you should create a property and variable both of type ICommand. The variable is initialized as an instance of DelegateCommand inside the ViewModel's constructor. In the XAML file you have to bind the Command property, to the property of type ICommand.

Please see the attached sample project, where this approach is demonstrated.

Regards,
Hristo
Telerik
 

Build cross-platform mobile apps using Visual Studio and .NET. Register for the online webinar on 03/27/2014, 11:00AM US ET.. Seats are limited.

 
Tags
PropertyGrid
Asked by
George
Top achievements
Rank 1
Answers by
Hristo
Telerik team
Share this question
or