Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
215
xamDataTree - MVVM TwoWay bindable SelectedItem/ActiveNode
posted

I am trying to work out how to get and set a SelectedItem/ActiveNode property with a twoway binding on the xamDataTree.

Using behaviors I can get the item that is selected by the user but am struggling to set it programmatically.

The example I based my code on is from this blog post. http://blogs.infragistics.com/blogs/devin_rader/archive/2011/06/01/using-behaviors-to-synchronize-selected-items-of-infragistics-silverlight-controls-to-a-viewmodel.aspx

Any help is welcome. 

Parents
  • 30945
    Offline posted

    Hello,

     

    I have created a sample application that allow you to bind the selected item of the XamDataTree. The application demonstrates how you can inherit the XamDataTree class and add a custom Dependency Property called SelectedItem. Then you can use the this class in your window instead the XamDataTree and bind the SelectedItem property to a property of your ViewModel.

     

    If you need any further assistance please do not hesitate to ask.

     

    Sincerely,

    Krasimir

    Developer Support Engineer

    Infragistics

    www.infragistics.com/support

    BindingSelectedNode.zip
Reply Children