TitleBarPanel Class
Represents a System.Windows.Controls.Panel within a title bar.
public class TitleBarPanel : Panel, DUCE.IResource, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IHaveResources, IQueryAmbient, IAddChild
- Inheritance:
- System.Object System.Windows.Threading.DispatcherObject System.Windows.DependencyObject System.Windows.Media.Visual System.Windows.UIElement System.Windows.FrameworkElement System.Windows.Controls.Panel Object
Constructors
TitleBarPanel()
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 System.Windows.FrameworkElement derived class.
protected override Size ArrangeOverride(Size finalSize)
Parameter | Type | Description |
---|---|---|
finalSize | System.Windows.Size | The final area within the parent that this element should use to arrange itself and its children. |
Returns
- System.Windows.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 | System.Windows.DependencyObject | The object from which the property value is read. |
Returns
- System.Boolean:
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 | System.Windows.DependencyObject | The object from which the property value is read. |
Returns
- System.Boolean:
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 | System.Windows.DependencyObject | The object from which the property value is read. |
Returns
- System.Boolean:
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 | System.Windows.DependencyObject | The object from which the property value is read. |
Returns
- System.Boolean:
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 | System.Windows.DependencyObject | The object from which the property value is read. |
Returns
- System.Boolean:
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 | System.Windows.Size | The size the element is suggested to fit inside. |
Returns
- System.Windows.Size:
The desired size of the element.
OnCreateAutomationPeer()
Returns an System.Windows.Automation.Peers.AutomationPeer object for this control instance.
protected override AutomationPeer OnCreateAutomationPeer()
Returns
- System.Windows.Automation.Peers.AutomationPeer:
An System.Windows.Automation.Peers.AutomationPeer instance.
SetIsContextContent(DependencyObject, Boolean)
Sets the value of the IsContextContent
attached property to the specified object.
public static void SetIsContextContent(DependencyObject obj, bool value)
Parameter | Type | Description |
---|---|---|
obj | System.Windows.DependencyObject | The object to which the attached property is written. |
value | System.Boolean | The value to set. |
SetIsFiller(DependencyObject, Boolean)
Sets the value of the IsFiller
attached property to the specified object.
public static void SetIsFiller(DependencyObject obj, bool value)
Parameter | Type | Description |
---|---|---|
obj | System.Windows.DependencyObject | The object to which the attached property is written. |
value | System.Boolean | The value to set. |
SetIsHeader(DependencyObject, Boolean)
Sets the value of the IsHeader
attached property to the specified object.
public static void SetIsHeader(DependencyObject obj, bool value)
Parameter | Type | Description |
---|---|---|
obj | System.Windows.DependencyObject | The object to which the attached property is written. |
value | System.Boolean | The value to set. |
SetIsIcon(DependencyObject, Boolean)
Sets the value of the IsIcon
attached property to the specified object.
public static void SetIsIcon(DependencyObject obj, bool value)
Parameter | Type | Description |
---|---|---|
obj | System.Windows.DependencyObject | The object to which the attached property is written. |
value | System.Boolean | The value to set. |
SetIsReadOnlyContextContent(DependencyObject, Boolean)
Sets the value of the IsReadOnlyContextContent
attached property to the specified object.
public static void SetIsReadOnlyContextContent(DependencyObject obj, bool value)
Parameter | Type | Description |
---|---|---|
obj | System.Windows.DependencyObject | The object to which the attached property is written. |
value | System.Boolean | 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
Inherited Members
- System.Object.ToString()
- System.Object.Equals(System.Object)
- System.Object.Equals(System.Object, System.Object)
- System.Object.ReferenceEquals(System.Object, System.Object)
- System.Object.GetHashCode()
- System.Object.GetType()
- System.Object.MemberwiseClone()
Extension Methods
- FrameworkElementExtensions.AnimateDoubleProperty(String, Double, Double, Double, Nullable<Double>, Nullable<Double>)
- FrameworkElementExtensions.BindToProperty(DependencyProperty, Object, String, BindingMode, IValueConverter, Object)
- FrameworkElementExtensions.BindToProperty(DependencyProperty, Object, DependencyProperty, BindingMode, IValueConverter, Object)
- FrameworkElementExtensions.GetCurrentSize()