Class
WindowHeaderPanel

Represents the panel used in the header of RadWindow. It provides options to align the buttons or left or right and center or not the title of the window. The panel should contain only two containers one for the title and one for the buttons. The containers should be marked with the attached ContainerType property, if two or more are marked as Buttons (for example) only the last one will be considered in the layout logic. Any other elements placed inside of the panel will be ignored when measuring and arranging the layout of the panel.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.Navigation.dll

Syntax:

cs-api-definition
public class WindowHeaderPanel : Panel

Inheritance: objectWindowHeaderPanel

Constructors

WindowHeaderPanel()

Declaration

cs-api-definition
public WindowHeaderPanel()

Fields

AlignButtonsToLeftProperty

Identifies the AlignButtonsToLeft dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty AlignButtonsToLeftProperty

Field Value

DependencyProperty

AlignTitleToCenterProperty

Identifies the AlignTitleToCenter dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty AlignTitleToCenterProperty

Field Value

DependencyProperty

ContainerTypeProperty

Identifies the ContainerType attached property.

Declaration

cs-api-definition
public static readonly DependencyProperty ContainerTypeProperty

Field Value

DependencyProperty

Properties

AlignButtonsToLeft

Gets or sets value indicating whether the window header buttons should be aligned to the right or to the left side of the header. The default value is false - the buttons are aligned to the right side of the header. This is dependency property.

Declaration

cs-api-definition
public bool AlignButtonsToLeft { get; set; }

Property Value

bool

AlignTitleToCenter

Gets or sets value indicating whether the window header title should be aligned to the center the header. The default value is false - the title is aligned to the opposite side of the buttons (if buttons are aligned to right, the title will be aligned to left). This is dependency property.

Declaration

cs-api-definition
public bool AlignTitleToCenter { get; set; }

Property Value

bool

Methods

ArrangeOverride(Size)

Provides the behavior for the Arrange pass of layout. Classes can override this method to define their own Arrange pass behavior.

Declaration

cs-api-definition
protected override Size ArrangeOverride(Size finalSize)

Parameters

finalSize

Size

The final area within the parent that this object should use to arrange itself and its children.

Returns

Size

The actual size that is used after the element is arranged in layout.

GetContainerType(DependencyObject)

Gets the ContainerType of the child element.

Declaration

cs-api-definition
public static WindowHeaderPanelContainerType GetContainerType(DependencyObject obj)

Parameters

obj

DependencyObject

Returns

WindowHeaderPanelContainerType

MeasureOverride(Size)

Provides the behavior for the Measure pass. Classes can override this method to define their own Measure pass behavior.

Declaration

cs-api-definition
protected override Size MeasureOverride(Size availableSize)

Parameters

availableSize

Size

The available size that this object can give to child objects. Infinity can be specified as a value to indicate that the object will size to whatever content is available.

Returns

Size

The size that this object determines it needs during layout, based on its calculations of child object allotted sizes.

SetContainerType(DependencyObject, WindowHeaderPanelContainerType)

Sets the ContainerType of the child element.

Declaration

cs-api-definition
public static void SetContainerType(DependencyObject obj, WindowHeaderPanelContainerType value)

Parameters

obj

DependencyObject

value

WindowHeaderPanelContainerType