TreeView for WPF Layout and Appearance

The following topics detail how to customize the C1TreeView control's layout and appearance. You can use built-in layout options to lay your controls out in panels such as Grids or Canvases. Themes allow you to customize the appearance of the treeview and take advantage of WPF's XAML-based styling.

You can customize the appearance of your treeview item by using the Header property. You can set the Header to be any object such as a stack panel containing an image and some text:

<C1TreeViewItem>

   <C1:C1TreeViewItem.Header>

      <StackPanel Orientation="Horizontal">

         <Image Source="myImage,jpg"/>

         <TextBlock Text="My Text"/>

      </StackPanel>

   </C1:C1TreeViewItem.Header>

</C1:C1TreeViewItem>


Send us comments about this topic.
Copyright © GrapeCity, inc. All rights reserved.