New to Telerik UI for WPFStart a free 30-day trial

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:

C#
public class WindowHeaderPanel : Panel

Inheritance: objectWindowHeaderPanel

Constructors

C#
public WindowHeaderPanel()

Fields

AlignButtonsToLeftProperty

DependencyProperty

Identifies the AlignButtonsToLeft dependency property.

C#
public static readonly DependencyProperty AlignButtonsToLeftProperty

AlignTitleToCenterProperty

DependencyProperty

Identifies the AlignTitleToCenter dependency property.

C#
public static readonly DependencyProperty AlignTitleToCenterProperty

ContainerTypeProperty

DependencyProperty

Identifies the ContainerType attached property.

C#
public static readonly DependencyProperty ContainerTypeProperty

Properties

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.

C#
public bool AlignButtonsToLeft { get; set; }

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.

C#
public bool AlignTitleToCenter { get; set; }

Methods

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

C#
protected override Size ArrangeOverride(Size finalSize)
Parameters:finalSizeSize

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.

Gets the ContainerType of the child element.

C#
public static WindowHeaderPanelContainerType GetContainerType(DependencyObject obj)
Parameters:objDependencyObjectReturns:

WindowHeaderPanelContainerType

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

C#
protected override Size MeasureOverride(Size availableSize)
Parameters:availableSizeSize

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.

Sets the ContainerType of the child element.

C#
public static void SetContainerType(DependencyObject obj, WindowHeaderPanelContainerType value)
Parameters:objDependencyObjectvalueWindowHeaderPanelContainerType