Implements a selectable item in a C1TreeView control.

Namespace:  C1.Silverlight
Assembly:  C1.Silverlight (in C1.Silverlight.dll)

Syntax

C#
[TemplatePartAttribute(Name = "HeaderEditor", Type = typeof(ContentControl))]
[TemplatePartAttribute(Name = "ChildrenPanel", Type = typeof(ItemsPresenter))]
[TemplatePartAttribute(Name = "HeaderPanelContainer", Type = typeof(Grid))]
[TemplatePartAttribute(Name = "HeaderPanel", Type = typeof(Grid))]
[TemplateVisualStateAttribute(Name = "Expanded", GroupName = "ExpandedStatesStates")]
[TemplateVisualStateAttribute(Name = "Collapsed", GroupName = "ExpandedStatesStates")]
[TemplateVisualStateAttribute(Name = "Selected", GroupName = "SelectionStates")]
[TemplateVisualStateAttribute(Name = "Unselected", GroupName = "SelectionStates")]
[TemplatePartAttribute(Name = "Header", Type = typeof(ContentControl))]
[TemplatePartAttribute(Name = "ExpandButton", Type = typeof(ToggleButton))]
public class C1TreeViewItem : C1HierarchicalPresenter
Visual Basic
<TemplatePartAttribute(Name := "HeaderEditor", Type := GetType(ContentControl))> _
<TemplatePartAttribute(Name := "ChildrenPanel", Type := GetType(ItemsPresenter))> _
<TemplatePartAttribute(Name := "HeaderPanelContainer", Type := GetType(Grid))> _
<TemplatePartAttribute(Name := "HeaderPanel", Type := GetType(Grid))> _
<TemplateVisualStateAttribute(Name := "Expanded", GroupName := "ExpandedStatesStates")> _
<TemplateVisualStateAttribute(Name := "Collapsed", GroupName := "ExpandedStatesStates")> _
<TemplateVisualStateAttribute(Name := "Selected", GroupName := "SelectionStates")> _
<TemplateVisualStateAttribute(Name := "Unselected", GroupName := "SelectionStates")> _
<TemplatePartAttribute(Name := "Header", Type := GetType(ContentControl))> _
<TemplatePartAttribute(Name := "ExpandButton", Type := GetType(ToggleButton))> _
Public Class C1TreeViewItem _
	Inherits C1HierarchicalPresenter

Inheritance Hierarchy

System..::..Object
  System.Windows..::..DependencyObject
    System.Windows..::..UIElement
      System.Windows..::..FrameworkElement
        System.Windows.Controls..::..Control
          System.Windows.Controls..::..ItemsControl
            C1.Silverlight..::..C1HierarchicalPresenter
              C1.Silverlight..::..C1TreeViewItem

See Also