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.
Inheritance
Namespace: Telerik.Windows.Controls
Assembly: Telerik.Windows.Controls.Navigation.dll
Syntax
public class WindowHeaderPanel : Panel
Constructors
WindowHeaderPanel()
Declaration
public WindowHeaderPanel()
Fields
AlignButtonsToLeftProperty
Identifies the AlignButtonsToLeft dependency property.
Declaration
public static readonly DependencyProperty AlignButtonsToLeftProperty
Field Value
System.Windows.DependencyProperty
|
AlignTitleToCenterProperty
Identifies the AlignTitleToCenter dependency property.
Declaration
public static readonly DependencyProperty AlignTitleToCenterProperty
Field Value
System.Windows.DependencyProperty
|
ContainerTypeProperty
Identifies the ContainerType attached property.
Declaration
public static readonly DependencyProperty ContainerTypeProperty
Field Value
System.Windows.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
public bool AlignButtonsToLeft { get; set; }
Property Value
System.Boolean
|
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
public bool AlignTitleToCenter { get; set; }
Property Value
System.Boolean
|
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
protected override Size ArrangeOverride(Size finalSize)
Parameters
System.Windows.Size
finalSize
The final area within the parent that this object should use to arrange itself and its children. |
Returns
System.Windows.Size
The actual size that is used after the element is arranged in layout. |
GetContainerType(DependencyObject)
Gets the ContainerType of the child element.
Declaration
public static WindowHeaderPanelContainerType GetContainerType(DependencyObject obj)
Parameters
System.Windows.DependencyObject
obj
|
Returns
WindowHeaderPanelContainerType
|
MeasureOverride(Size)
Provides the behavior for the Measure pass. Classes can override this method to define their own Measure pass behavior.
Declaration
protected override Size MeasureOverride(Size availableSize)
Parameters
System.Windows.Size
availableSize
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
System.Windows.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
public static void SetContainerType(DependencyObject obj, WindowHeaderPanelContainerType value)
Parameters
System.Windows.DependencyObject
obj
|
WindowHeaderPanelContainerType
value
|