Mega Code Archive

 
Categories / Silverlight / UI Controls
 

TreeView from System Windows Controls

<UserControl x:Class='SilverlightApplication3.MainPage'     xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation'      xmlns:x='http://schemas.microsoft.com/winfx/2006/xaml'     xmlns:d='http://schemas.microsoft.com/expression/blend/2008'      xmlns:mc='http://schemas.openxmlformats.org/markup-compatibility/2006'      xmlns:c="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"     mc:Ignorable='d'      d:DesignWidth='640'      d:DesignHeight='480'>     <Grid x:Name="LayoutRoot" Background="White">         <c:TreeView>             <c:TreeView.Items>                 <c:TreeViewItem Header="Layout Panel Demonstrations" IsExpanded="True">                     <c:TreeViewItem Header="Canvas" IsSelected="True"/>                     <c:TreeViewItem Header="WrapPanel"/>                     <c:TreeViewItem Header="DockPanel"/>                     <c:TreeViewItem Header="Grid"/>                     <c:TreeViewItem Header="StackPanel"/>                 </c:TreeViewItem>             </c:TreeView.Items>         </c:TreeView>     </Grid> </UserControl>