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
Gets or sets the alignment of context content.
public ContextContentAlignment ContextContentAlignment { get; set; }
Property Value
- ContextContentAlignment:
The alignment of context content. 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:
The object's value.
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:
The object's value.
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:
The object's value.
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:
The object's value.
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:
The object's value.
MeasureOverride(Size)
Measures all children given an available size and returns the element's desired size based on the size of its children.
protected override Size MeasureOverride(Size availableSize)
Parameter | Type | Description |
---|---|---|
availableSize | Size | The size the element is suggested to fit inside. |
Returns
- Size:
The desired size of the element.
OnCreateAutomationPeer()
Returns an AutomationPeer object for this control instance.
protected override AutomationPeer OnCreateAutomationPeer()
Returns
- AutomationPeer:
An AutomationPeer instance.
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
Identifies the ContextContentAlignment
dependency property. This field is read-only.
public static readonly DependencyProperty ContextContentAlignmentProperty
IsContextContentProperty
Identifies the IsContextContent
dependency property. This field is read-only.
public static readonly DependencyProperty IsContextContentProperty
IsFillerProperty
Identifies the IsFiller
dependency property. This field is read-only.
public static readonly DependencyProperty IsFillerProperty
IsHeaderProperty
Identifies the IsHeader
dependency property. This field is read-only.
public static readonly DependencyProperty IsHeaderProperty
IsIconProperty
Identifies the IsIcon
dependency property. This field is read-only.
public static readonly DependencyProperty IsIconProperty
IsReadOnlyContextContentProperty
Identifies the IsReadOnlyContextContent
dependency property. This field is read-only.
public static readonly DependencyProperty IsReadOnlyContextContentProperty