Represents a Panel within a title bar.
- Inheritance:
-
object
Visual
UIElement
Framework
Element Panel object
Constructors
TitleBarPanel()
Initializes an instance of the class.
Properties
ContextContentAlignment
Gets or sets the alignment of context content.
Property Value
- Context
Content :Alignment 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 Framework
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.
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.
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.
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.
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.
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.
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 Automation
Returns
- Automation
Peer : An Automation
Peer instance.
SetIsContextContent(DependencyObject, bool)
Sets the value of the IsContextContent
attached property to the specified object.
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.
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.
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.
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.
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.
IsContextContentProperty
Identifies the IsContextContent
dependency property. This field is read-only.
IsFillerProperty
Identifies the IsFiller
dependency property. This field is read-only.
IsHeaderProperty
Identifies the IsHeader
dependency property. This field is read-only.
IsIconProperty
Identifies the IsIcon
dependency property. This field is read-only.
IsReadOnlyContextContentProperty
Identifies the IsReadOnlyContextContent
dependency property. This field is read-only.