Skip to end of metadata
Go to start of metadata

Remarks

ISHeaderedContentControl is one of many available content model that Intersoft ClientUI provides. To learn more about other content model see Content Model Overview.

ISHeaderedContentControl is a base class for all ClientUI headered content controls.It inherits the Content property from ContentControl and defines the Header property that is of type Object. Header provides a heading for the control. Like the Content property of a ContentControl, the Header can be any type.

Example

The following examples show several heading concept in ClientUI controls.

 

Group Box

Field Label

 

UXCallOut

Working with Header Property

The HeaderedContentControl inherits the Content property from ContentControl and defines the Header property that is of type Object. Header provides a heading for the control. Like the Content property of a ContentControl, the Header can be any type.

Definition

public abstract class ISHeaderedContentControl : ISContentControl

Summary

The following table summarizes the members exposed in this class.

Protected Constructors

Public Properties

HasHeaderDetermines whether the Header property of the control is set to a specific value.
HeaderGets or sets the content for the header of the control.
HeaderTemplateGets or sets the template that is used to display the content of the control's header.

Fields

HasHeaderPropertyIdentifies the HasHeader dependency property.
HeaderPropertyIdentifies the Header dependency property.
HeaderTemplatePropertyIdentifies the HeaderTemplate dependency property.

Public Methods

AttachEventHandlers()Attach built-in event handlers to control templates. Call this method if necessary.
DetachedEventHandlers()Detach built-in event handlers from control templates. Call this method if necessary.
OnApplyTemplate()Builds the visual tree for the ISHeaderedContentControl when a new template is applied.

Protected Methods

OnHeaderChanged(object, object)Called when the value of the Header property changes.
OnHeaderTemplateChanged(DataTemplate, DataTemplate)Called when the value of the HeaderTemplate property changes.

Protected Constructors

protected ISHeaderedContentControl()

 

Public Properties

public bool HasHeader { get; }

Determines whether the Header property of the control is set to a specific value.

public object Header { get; set; }

Gets or sets the content for the header of the control.

Remarks

The ISHeaderedContentControl inherits the Content property from ContentControl and defines the Header property that is of type Object. Header provides a heading for the control. Like the Content property of a ContentControl, the Header can be any type.

 

public DataTemplate HeaderTemplate { get; set; }

Gets or sets the template that is used to display the content of the control's header.

Fields

public static readonly DependencyProperty HasHeaderProperty

Identifies the HasHeader dependency property.

public static readonly DependencyProperty HeaderProperty

Identifies the Header dependency property.

public static readonly DependencyProperty HeaderTemplateProperty

Identifies the HeaderTemplate dependency property.

Public Methods

public void AttachEventHandlers()

Attach built-in event handlers to control templates. Call this method if necessary.

public void DetachedEventHandlers()

Detach built-in event handlers from control templates. Call this method if necessary.

public void OnApplyTemplate()

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

Protected Methods

protected void OnHeaderChanged(object oldHeader, object newHeader)

Called when the value of the Header property changes.

Parameters

oldHeaderThe old value of the Header property.
newHeaderThe new value of the Header property.

 

protected void OnHeaderTemplateChanged(DataTemplate oldHeaderTemplate, DataTemplate newHeaderTemplate)

Called when the value of the HeaderTemplate property changes.

Parameters

oldHeaderTemplateThe old value of the HeaderTemplate property.
newHeaderTemplateThe new value of the HeaderTemplate property.
  • No labels