[]
        
(Showing Draft Content)

C1.WPF.C1HierarchicalPresenter

C1HierarchicalPresenter Class

Represents a control that contains multiple items and has a header.

Namespace: C1.WPF
Assembly: C1.WPF.4.6.2.dll
Syntax
[TemplatePart(Name = "HeaderPresenter", Type = typeof(ContentPresenter))]
[TemplateVisualState(Name = "MouseOver", GroupName = "CommonStates")]
[TemplateVisualState(Name = "Disabled", GroupName = "CommonStates")]
[TemplateVisualState(Name = "Normal", GroupName = "CommonStates")]
public class C1HierarchicalPresenter : ItemsControl, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild, IContainItemStorage

Constructors

Name Description
C1HierarchicalPresenter()

Initializes a new instance of a C1HierarchicalPresenter.

Fields

Name Description
HeaderProperty

Identifies the Header dependency property.

HeaderTemplateProperty

Identifies the HeaderTemplate dependency property.

Properties

Name Description
Header

Gets or sets the item that labels the control.

HeaderTemplate

Gets or sets the template used to display the contents of the control's header.

ItemConverter

The ItemConverter performs the conversion from a C1.Silverlight.C1HierarchicalPresenter instance to its String representation. If not set by the user, the default converter will be used.

ParentCollection

Gets the items collection of this element's parent.

ParentItemsSource

Returns this element's parent ItemsSource Property.

Methods

Name Description
ChangeVisualStateCommon(bool)

Updates the current visual state of the Common visual state group to match the object's properties.

ClearContainerForItemOverride(DependencyObject, object)
GetContainerForItemOverride()
InitializeItem(C1HierarchicalPresenter)

Initializes a C1.Silverlight.C1HierarchicalPresenter by setting its parent and root elements in the hierarchy.

IsAncestorOf(C1HierarchicalPresenter)

Determines whether the C1.Silverlight.C1HierarchicalPresenter is an ancestor of the descendant element.

IsItemItsOwnContainerOverride(object)
OnApplyTemplate()

Builds the visual tree for the C1HierarchicalPresenter control when a new template is applied.

OnHeaderChanged(object)

Called when the value of the Header property changes.

OnItemCleared(ItemPreparedEventArgs)

Raises the C1.Silverlight.C1HierarchicalPresenter.ItemCleared event.

OnItemPrepared(ItemPreparedEventArgs)

Raises the C1.Silverlight.C1HierarchicalPresenter.ItemPrepared event.

OnPropertyChanged(DependencyPropertyChangedEventArgs)

Invoked whenever the effective value of any dependency property has been updated.

PrepareContainerForItemOverride(DependencyObject, object)
ToList<T>()

Creates a list with all the item containers present in the Hierarchical Presenter at the moment of invocation.

Events

Name Description
IsMouseOverChanged

Event raised when the IsMouseOver property has changed.

ItemCleared

Occurs when a C1HierarchicalPresenter child item is cleared. (ClearContainerForItemOverride was invoked).

ItemPrepared

Occurs when a C1HierarchicalPresenter child item is prepared (PrepareContainerForItemOverride was invoked).

Extension Methods