C# Class Microsoft.Silverlight.Testing.Controls.HeaderedItemsControl

Inheritance: System.Windows.Controls.ItemsControl
Show file Open project: garyjohnson/wpnest Class Usage Examples

Public Properties

Property Type Description
HeaderProperty System.Windows.DependencyProperty
HeaderTemplateProperty System.Windows.DependencyProperty
ItemContainerStyleProperty System.Windows.DependencyProperty

Private Properties

Property Type Description
HasDefaultValue bool
OnHeaderPropertyChanged void
OnHeaderTemplatePropertyChanged void
OnItemContainerStylePropertyChanged void
PrepareHeaderedItemsControlContainer void
PreparePrepareHeaderedItemsControlContainerForItemOverride void

Public Methods

Method Description
HeaderedItemsControl ( ) : System

Initializes a new instance of the T:Microsoft.Silverlight.Testing.Controls.HeaderedItemsControl class.

OnApplyTemplate ( ) : void

Builds the visual tree for the T:Microsoft.Silverlight.Testing.Controls.HeaderedItemsControl when a new template is applied.

Protected Methods

Method Description
OnHeaderChanged ( object oldHeader, object newHeader ) : void

Called when the value of the P:Microsoft.Silverlight.Testing.Controls.HeaderedItemsControl.Header property changes.

OnHeaderTemplateChanged ( System.Windows.DataTemplate oldHeaderTemplate, System.Windows.DataTemplate newHeaderTemplate ) : void

Called when the value of the P:Microsoft.Silverlight.Testing.Controls.HeaderedItemsControl.HeaderTemplate property changes.

PrepareContainerForItemOverride ( DependencyObject element, object item ) : void

Prepares the specified element to display the specified item.

Private Methods

Method Description
HasDefaultValue ( Control control, DependencyProperty property ) : bool

Check whether a control has the default value for a property.

OnHeaderPropertyChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void

HeaderProperty property changed handler.

OnHeaderTemplatePropertyChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void

HeaderTemplateProperty property changed handler.

OnItemContainerStylePropertyChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void

ItemContainerStyleProperty property changed handler.

PrepareHeaderedItemsControlContainer ( HeaderedItemsControl control, object item, ItemsControl parentItemsControl, System.Windows.Style parentItemContainerStyle ) : void

Prepare a PrepareHeaderedItemsControlContainer container for an item.

PreparePrepareHeaderedItemsControlContainerForItemOverride ( DependencyObject element, object item, ItemsControl parent, System.Windows.Style parentItemContainerStyle ) : void

Prepares the specified container to display the specified item.

Method Details

HeaderedItemsControl() public method

Initializes a new instance of the T:Microsoft.Silverlight.Testing.Controls.HeaderedItemsControl class.
public HeaderedItemsControl ( ) : System
return System

OnApplyTemplate() public method

Builds the visual tree for the T:Microsoft.Silverlight.Testing.Controls.HeaderedItemsControl when a new template is applied.
public OnApplyTemplate ( ) : void
return void

OnHeaderChanged() protected method

Called when the value of the P:Microsoft.Silverlight.Testing.Controls.HeaderedItemsControl.Header property changes.
protected OnHeaderChanged ( object oldHeader, object newHeader ) : void
oldHeader object /// The old value of the /// /// property. ///
newHeader object /// The new value of the /// /// property. ///
return void

OnHeaderTemplateChanged() protected method

Called when the value of the P:Microsoft.Silverlight.Testing.Controls.HeaderedItemsControl.HeaderTemplate property changes.
protected OnHeaderTemplateChanged ( System.Windows.DataTemplate oldHeaderTemplate, System.Windows.DataTemplate newHeaderTemplate ) : void
oldHeaderTemplate System.Windows.DataTemplate /// The old value of the /// /// property. ///
newHeaderTemplate System.Windows.DataTemplate /// The new value of the /// /// property. ///
return void

PrepareContainerForItemOverride() protected method

Prepares the specified element to display the specified item.
protected PrepareContainerForItemOverride ( DependencyObject element, object item ) : void
element System.Windows.DependencyObject /// The container element used to display the specified item. ///
item object The content to display.
return void

Property Details

HeaderProperty public static property

Identifies the P:Microsoft.Silverlight.Testing.Controls.HeaderedItemsControl.Header dependency property.
Note: WPF defines this property via a call to AddOwner of HeaderedContentControl's HeaderProperty.
public static DependencyProperty,System.Windows HeaderProperty
return System.Windows.DependencyProperty

HeaderTemplateProperty public static property

Identifies the P:Microsoft.Silverlight.Testing.Controls.HeaderedItemsControl.HeaderTemplate dependency property.
Note: WPF defines this property via a call to AddOwner of HeaderedContentControl's HeaderTemplateProperty.
public static DependencyProperty,System.Windows HeaderTemplateProperty
return System.Windows.DependencyProperty

ItemContainerStyleProperty public static property

Identifies the P:Microsoft.Silverlight.Testing.Controls.HeaderedItemsControl.ItemContainerStyle dependency property.
public static DependencyProperty,System.Windows ItemContainerStyleProperty
return System.Windows.DependencyProperty