SelectedItems

2 posts, 0 answers
  1. Martin
    Martin avatar
    3 posts
    Member since:
    Feb 2014

    Posted 24 Feb 2014 Link to this post

    Hi,
    could you make SelectedItems property as DependencyProperty? Why is this property marked as private?

    Thanks for your answers.
  2. Ivan Ivanov
    Admin
    Ivan Ivanov avatar
    1128 posts

    Posted 27 Feb 2014 Link to this post

    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
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top