Class HeaderedContentControl
Provides the base implementation for controls that contain a single content element and a header.
Inheritance
Inherited Members
Namespace: System.Windows.Controls
Assembly: OpenSilver.dll
Syntax
public class HeaderedContentControl : ContentControl
Remarks
HeaderedContentControl adds Header and HeaderTemplatefeatures to a ContentControl. HasHeader and HeaderTemplateSelector are removed for lack of support and consistency with other Silverlight controls.
Constructors
| Improve this Doc View SourceHeaderedContentControl()
Initializes a new instance of the HeaderedContentControl class.
Declaration
public HeaderedContentControl()
Fields
| Improve this Doc View SourceHeaderProperty
Identifies the Header dependency property.
Declaration
public static readonly DependencyProperty HeaderProperty
Field Value
Type | Description |
---|---|
DependencyProperty | The identifier for the Header dependency property. |
HeaderTemplateProperty
Identifies the HeaderTemplate dependency property.
Declaration
public static readonly DependencyProperty HeaderTemplateProperty
Field Value
Type | Description |
---|---|
DependencyProperty | The identifier for the HeaderTemplate dependency property. |
Properties
| Improve this Doc View SourceHeader
Gets or sets the content for the header of the control.
Declaration
public object Header { get; set; }
Property Value
Type | Description |
---|---|
System.Object | The content for the header of the control. The default value is null. |
HeaderTemplate
Gets or sets the template that is used to display the content of the control's header.
Declaration
public DataTemplate HeaderTemplate { get; set; }
Property Value
Type | Description |
---|---|
DataTemplate | The template that is used to display the content of the control's header. The default is null. |
Methods
| Improve this Doc View SourceOnHeaderChanged(Object, Object)
Called when the value of the Header property changes.
Declaration
protected virtual void OnHeaderChanged(object oldHeader, object newHeader)
Parameters
Type | Name | Description |
---|---|---|
System.Object | oldHeader | The old value of the Header property. |
System.Object | newHeader | The new value of the Header property. |
OnHeaderTemplateChanged(DataTemplate, DataTemplate)
Called when the value of the HeaderTemplate property changes.
Declaration
protected virtual void OnHeaderTemplateChanged(DataTemplate oldHeaderTemplate, DataTemplate newHeaderTemplate)
Parameters
Type | Name | Description |
---|---|---|
DataTemplate | oldHeaderTemplate | The old value of the HeaderTemplate property. |
DataTemplate | newHeaderTemplate | The new value of the HeaderTemplate property. |