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

Inheritance: System.Windows.Controls.ItemsControl
Afficher le fichier Open project: garyjohnson/wpnest Class Usage Examples

Méthodes publiques

Свойство Type Description
HeaderProperty System.Windows.DependencyProperty
HeaderTemplateProperty System.Windows.DependencyProperty
ItemContainerStyleProperty System.Windows.DependencyProperty

Private Properties

Свойство Type Description
HasDefaultValue bool
OnHeaderPropertyChanged void
OnHeaderTemplatePropertyChanged void
OnItemContainerStylePropertyChanged void
PrepareHeaderedItemsControlContainer void
PreparePrepareHeaderedItemsControlContainerForItemOverride void

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode 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

Méthode 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 méthode

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

OnApplyTemplate() public méthode

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

OnHeaderChanged() protected méthode

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. ///
Résultat void

OnHeaderTemplateChanged() protected méthode

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. ///
Résultat void

PrepareContainerForItemOverride() protected méthode

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.
Résultat void

Property Details

HeaderProperty public_oe static_oe 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
Résultat System.Windows.DependencyProperty

HeaderTemplateProperty public_oe static_oe 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
Résultat System.Windows.DependencyProperty

ItemContainerStyleProperty public_oe static_oe property

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