XMLNS for XAML:
public event RoutedEventHandler Unselected
< object Unselected = " RoutedEventHandler " ... />
The following example shows how to assign an event handler for the
event to a Selected , and how to define the event handler. TreeViewItem
< TreeViewItem Header = " Employee2 "
Name = " Employee2Data " >
< TreeViewItem Header = " Work Days "
Name = " emp2WorkDays "
Selected = " GetSchedule "
Unselected = " SetSchedule " >
< TreeViewItem Header = " Monday " />
< TreeViewItem Header = " Wednesday " />
</ TreeViewItem >
private void SetSchedule( object sender, RoutedEventArgs e)
//Perform actions when a TreeViewItem
//control becomes unselected
Supported in: 4, 3.5, 3.0
.NET Framework Client Profile
Supported in: 4, 3.5 SP1
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see
.NET Framework System Requirements.
( 1500 characters remaining)
Thank you for your feedback