skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop

    Web

    Kendo UI UI for jQuery UI for Angular UI for React UI for Vue UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Test Studio Dev Edition Telerik JustMock

    CMS

    Sitefinity

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Forums
    • Videos
    • Blogs
    • Accessibility
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

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
System.Object
WindowHeaderPanel
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

Extension Methods

CollectionExtensions.ToEnumerable<T>(T)
EnumerableExtensions.ToEnumerable<T>(T)
Getting Started
  • Install Now
  • Demos
  • SDK Samples Browser
  • Sample Applications
Support Resources
  • Code Library
  • Knowledge Base
  • MVVM Support
  • Videos
  • GitHub SDK Repository
Community
  • Forums
  • Blogs
  • XAML Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.