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

SelectedItems

1 Answer 9 Views
PropertyGrid
This is a migrated thread and some comments may be shown as answers.
Martin
Top achievements
Rank 1
Martin asked on 24 Feb 2014, 12:54 PM
Hi,
could you make SelectedItems property as DependencyProperty? Why is this property marked as private?

Thanks for your answers.

1 Answer, 1 is accepted

Sort by
0
Ivan Ivanov
Telerik team
answered on 27 Feb 2014, 02:22 PM
Hello,

Are you refering to RadPropertyGrid or RadGridView, as the former  control has a SelectedPropertyDefinitions property and the latter one has SelectedItems? However, both of them are not exposed as DependencyProperties, due to a framework limitation with binding to read-only collection dependency properties that we have encountered. They are not private, but they do not have public setters. This is a common good practice for collection properties, as they are not expected to change their value at runtime. Nevertheless, one can interact with them by modifying their items and their items' properties.

Regards,
Ivan Ivanov
Telerik
Tags
PropertyGrid
Asked by
Martin
Top achievements
Rank 1
Answers by
Ivan Ivanov
Telerik team
Share this question
or