WinRT Edition Basic Library > TreeView for WinRT > TreeView for WinRT Quick Start > Step 3 of 3: Customizing TreeView’sAppearance and Behavior |
In the previous step you worked in Visual Studio to create C1TreeViewItems in XAML markup. In this step you'll customize the C1TreeView control's appearance and behavior in using XAML code.
To customize TreeView for WinRT, complete the following steps:
Markup Copy Code <Xaml:C1TreeView x:Name="Tree" SelectionMode="Extended">
Markup Copy Code <Xaml:C1TreeViewItem Header="Book List" IsExpanded="True" IsSelected="True">
Markup Copy Code <Xaml:C1TreeViewItem Header="Language Books" Foreground="Fuchsia"/>
It will appear similar to the following image:
Observe the following behavioral and appearance changes for C1TreeView:
Congratulations!
You've successfully completed the TreeView for WinRT quick start. In this quick start, you created and customized a TreeView for WinRT application, added static C1TreeViewItems, and observed several of the control's run-time behavior.