In the previous step you worked in Visual Studio to create C1TreeViewItems in XAML. In this step you'll customize the C1TreeView control's appearance and behavior in Visual Studio using XAML code.
Within the <c1:C1TreeView> tag add SelectionMode="Extended". This will create a top-level node that you will be able to select multiple tree items by holding the shift and control keys. The XAML markup appears as follows:
XAML Copy Code <c1:C1TreeView x:Name="Tree" SelectionMode="Extended">
Within the <c1:C1TreeViewItem> add the tag IsExpanded="True" and IsSelected="True". This will create a top-level node that appears selected and expanded at run time. The XAML markup appears as follows:
XAML Copy Code <c1:C1TreeViewItem Header="Book List" IsExpanded="True" IsSelected="True">
XAML Copy Code <c1:C1TreeViewItem Header="Language Books" Foreground="Fuchsia"/>
Congratulations!
You have successfully completed the TreeView for WPF and Silverlight quick start. In this quick start, you've created and customized a TreeView for WPF or Silverlight application, added static C1TreeViewItems, and observed several of the control's run-time features.