In This Article

TitleBarPanel Class

Represents a Panel within a title bar.

public class TitleBarPanel : Panel
Inheritance:
object Visual UIElement FrameworkElement Panel object

Constructors

TitleBarPanel()

Initializes an instance of the class.

public TitleBarPanel()

Properties

ContextContentAlignment

The alignment of context content.

public ContextContentAlignment ContextContentAlignment { get; set; }

Property Value

ContextContentAlignment:

The default value is Far.

Methods

ArrangeOverride(Size)

When overridden in a derived class, positions child elements and determines a size for a FrameworkElement derived class.

protected override Size ArrangeOverride(Size finalSize)
Parameter Type Description
finalSize Size

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

Returns

Size:

The actual size used.

GetIsContextContent(DependencyObject)

Gets the value of the IsContextContent attached property for the specified object.

[AttachedPropertyBrowsableForChildren]
public static bool GetIsContextContent(DependencyObject obj)
Parameter Type Description
obj DependencyObject

The object from which the property value is read.

Returns

bool

GetIsFiller(DependencyObject)

Gets the value of the IsFiller attached property for the specified object.

[AttachedPropertyBrowsableForChildren]
public static bool GetIsFiller(DependencyObject obj)
Parameter Type Description
obj DependencyObject

The object from which the property value is read.

Returns

bool

GetIsHeader(DependencyObject)

Gets the value of the IsHeader attached property for the specified object.

[AttachedPropertyBrowsableForChildren]
public static bool GetIsHeader(DependencyObject obj)
Parameter Type Description
obj DependencyObject

The object from which the property value is read.

Returns

bool

GetIsIcon(DependencyObject)

Gets the value of the IsIcon attached property for the specified object.

[AttachedPropertyBrowsableForChildren]
public static bool GetIsIcon(DependencyObject obj)
Parameter Type Description
obj DependencyObject

The object from which the property value is read.

Returns

bool

GetIsReadOnlyContextContent(DependencyObject)

Gets the value of the IsReadOnlyContextContent attached property for the specified object.

[AttachedPropertyBrowsableForChildren]
public static bool GetIsReadOnlyContextContent(DependencyObject obj)
Parameter Type Description
obj DependencyObject

The object from which the property value is read.

Returns

bool

MeasureOverride(Size)

When overridden in a derived class, measures the size in layout required for child elements and determines a size for the FrameworkElement-derived class.

protected override Size MeasureOverride(Size availableSize)
Parameter Type Description
availableSize Size

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

Returns

Size:

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

OnCreateAutomationPeer()

Returns class-specific AutomationPeer implementations for the Windows Presentation Foundation (WPF) infrastructure.

protected override AutomationPeer OnCreateAutomationPeer()

Returns

AutomationPeer:

The type-specific AutomationPeer implementation.

SetIsContextContent(DependencyObject, bool)

Sets the value of the IsContextContent attached property to the specified object.

public static void SetIsContextContent(DependencyObject obj, bool value)
Parameter Type Description
obj DependencyObject

The object to which the attached property is written.

value bool

The value to set.

SetIsFiller(DependencyObject, bool)

Sets the value of the IsFiller attached property to the specified object.

public static void SetIsFiller(DependencyObject obj, bool value)
Parameter Type Description
obj DependencyObject

The object to which the attached property is written.

value bool

The value to set.

SetIsHeader(DependencyObject, bool)

Sets the value of the IsHeader attached property to the specified object.

public static void SetIsHeader(DependencyObject obj, bool value)
Parameter Type Description
obj DependencyObject

The object to which the attached property is written.

value bool

The value to set.

SetIsIcon(DependencyObject, bool)

Sets the value of the IsIcon attached property to the specified object.

public static void SetIsIcon(DependencyObject obj, bool value)
Parameter Type Description
obj DependencyObject

The object to which the attached property is written.

value bool

The value to set.

SetIsReadOnlyContextContent(DependencyObject, bool)

Sets the value of the IsReadOnlyContextContent attached property to the specified object.

public static void SetIsReadOnlyContextContent(DependencyObject obj, bool value)
Parameter Type Description
obj DependencyObject

The object to which the attached property is written.

value bool

The value to set.

Fields

ContextContentAlignmentProperty

Defines the ContextContentAlignment property.

public static readonly DependencyProperty ContextContentAlignmentProperty

IsContextContentProperty

Defines the IsContextContent property.

public static readonly DependencyProperty IsContextContentProperty

IsFillerProperty

Defines the IsFiller property.

public static readonly DependencyProperty IsFillerProperty

IsHeaderProperty

Defines the IsHeader property.

public static readonly DependencyProperty IsHeaderProperty

IsIconProperty

Defines the IsIcon property.

public static readonly DependencyProperty IsIconProperty

IsReadOnlyContextContentProperty

Defines the IsReadOnlyContextContent property.

public static readonly DependencyProperty IsReadOnlyContextContentProperty

Extension Methods