(X) Hide this Join our next live webcast on December 15th, 10 am PDT - Building a Silverlight 4 application end-to-end. Presenter: Gill Cleeren
Check the webinar agenda | Register for the webinar
Skip Navigation LinksHome / News / View News

Two-Way Binding on TreeView.SelectedItem

+ Add to SilverlightShow Favorites
0 comments   /   posted by Silverlight Show on Dec 01, 2010
(0 votes)

SilverlightShow Page for all Silverlight and Windows Phone 7 (WP7) things on TwitterIn this post, Phil Middlemiss describes an attached-behavior for a TreeView control that allows you to achieve two-way binding on the SelectedItem property.

Source: Silverlight Scratchpad

In this post I described an attached behavior that lets you achieve two-way binding on the TreeView.SelectedItem property. The behavior is especially useful if you are using the MVVM pattern to keep your views and view models separate, and want to avoid code in the View’s code-behind file.

Share


Comments

Comments RSS RSS
No comments

Add Comment

 
 

   
  
  
   
Please add 4 and 4 and type the answer here: