TreeView CheckBox DataBinding Silverlight 3

Monday, July 27, 2009

In Silverlight 2 Beta i was Big Problem To bind Data with treeview checkbox but its will become Very easy in Silverlight 3 Silverlight 3 Add new Property Called TreeViewItemCheckBox So Try this tutial

1 new project and Create Silverlight Application Call mysite

2 go Solution Explorer and right Click on page.xaml

3 Selcet Treeview Control from asset

4 and Drow treeview on Canvus AND NAMED TvCheckbox save

5 add this namespace to to XAML code
xmlns:controlsToolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Toolkit" 6
back to Visaul Studio and go page.cs file add code this code on page load event

Try it Live

Download Source Code
i hope its will helps you
Usama Wahab Khan

share this post
Share to Facebook Share to Twitter Share to Google+ Share to Stumble Upon Share to Evernote Share to Blogger Share to Email Share to Yahoo Messenger More...