Class TitleBar
This class is a container for TitleBar items.
Inheritance
Implements
Namespace: Syncfusion.Windows.Tools.Controls
Assembly: Syncfusion.Tools.Wpf.dll
Syntax
public class TitleBar : Control, IDisposable
Constructors
TitleBar()
Initializes a new instance of the TitleBar class.
Declaration
public TitleBar()
Fields
AppMenuColumnWidthProperty
Defines the AppMenuColumnWidth
Declaration
protected static readonly DependencyProperty AppMenuColumnWidthProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
HasVisibleContextTabGroupProperty
Defines the HasVisibleContextTabGroup
Declaration
protected static readonly DependencyProperty HasVisibleContextTabGroupProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
HorizontalTitleOffsetProperty
Defines the horizontal offset of the title. This is a dependency property.
Declaration
public static readonly DependencyProperty HorizontalTitleOffsetProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
QATColumnWidthProperty
Defines the QATColumnWidth
Declaration
protected static readonly DependencyProperty QATColumnWidthProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
RibbonIsVisibleProperty
Defines the RibbonIsVisible
Declaration
protected static readonly DependencyProperty RibbonIsVisibleProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
SysButtonsColumnWidthProperty
Defines the SysButtonsColumnWidth
Declaration
public static readonly DependencyProperty SysButtonsColumnWidthProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
TitleActualWidthProperty
Defines the TitleActualWidth
Declaration
protected static readonly DependencyProperty TitleActualWidthProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
TitleMaxWidthProperty
Defines the TitleMaxWidth
Declaration
public static readonly DependencyProperty TitleMaxWidthProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
TitleProperty
Identifies title text of the TitleBar. This is a dependency property.
Declaration
public static readonly DependencyProperty TitleProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
Properties
AppMenuColumnWidth
Gets or sets the width of the app menu column.
Declaration
public double AppMenuColumnWidth { get; protected set; }
Property Value
Type | Description |
---|---|
System.Double | The width of the app menu column. |
HasVisibleContextTabGroup
Gets or sets a value indicating whether this instance has visible context tab group.
Declaration
public bool HasVisibleContextTabGroup { get; protected set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
HorizontalTitleOffset
Gets or sets the horizontal title offset.
Declaration
public double HorizontalTitleOffset { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The horizontal title offset. |
IsMousePressed
Gets or sets a value indicating whether this instance is mouse pressed.
Declaration
public bool IsMousePressed { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
QATColumnWidth
Gets or sets the width of the QAT column.
Declaration
public double QATColumnWidth { get; protected set; }
Property Value
Type | Description |
---|---|
System.Double | The width of the QAT column. |
RibbonIsVisible
Gets or sets a value indicating whether [ribbon is visible].
Declaration
public bool RibbonIsVisible { get; protected set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
SysButtonsColumnWidth
Gets or sets the width of the sys buttons column.
Declaration
public double SysButtonsColumnWidth { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The width of the sys buttons column. |
Title
Gets or sets the title.
Declaration
public string Title { get; set; }
Property Value
Type | Description |
---|---|
System.String | The title. |
TitleActualWidth
Gets or sets the actual width of the title.
Declaration
public double TitleActualWidth { get; protected set; }
Property Value
Type | Description |
---|---|
System.Double | The actual width of the title. |
TitleMaxWidth
Gets or sets the width of the title max.
Declaration
public double TitleMaxWidth { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The width of the title max. |
Methods
Dispose()
Declaration
public void Dispose()
OnApplyTemplate()
When overridden in a derived class, is invoked whenever application code or internal processes call ApplyTemplate.
Declaration
public override void OnApplyTemplate()
OnHasVisibleContextTabGroupChanged(DependencyPropertyChangedEventArgs)
Updates property value cache and raises HasVisibleContextTabGroupChanged event.
Declaration
protected virtual void OnHasVisibleContextTabGroupChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | Property change details, such as old value and new value. |
OnMouseLeftButtonDown(MouseButtonEventArgs)
Invoked when an unhandled MouseLeftButtonDown routed event is raised on this element. Implement this method to add class handling for this event.
Declaration
protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.MouseButtonEventArgs | e | The MouseButtonEventArgs that contains the event data. The event data reports that the left mouse button was pressed. |
OnRibbonIsVisibleChanged(DependencyPropertyChangedEventArgs)
Updates property value cache and raises RibbonIsVisibleChanged event.
Declaration
protected virtual void OnRibbonIsVisibleChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | Property change details, such as old value and new value. |
OnStylusSystemGesture(StylusSystemGestureEventArgs)
Returns class-specific AutomationPeer implementations for the Windows Presentation Foundation infrastructure.
Declaration
protected override void OnStylusSystemGesture(StylusSystemGestureEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.StylusSystemGestureEventArgs | e |
OnTouchDown(TouchEventArgs)
Provides class handling for the TouchDown routed event that occurs when a touch presses inside this element.
Declaration
protected override void OnTouchDown(TouchEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.TouchEventArgs | e | The event data |
Events
HasVisibleContextTabGroupChanged
Event that is raised when HasVisibleContextTabGroup property is changed.
Declaration
public event PropertyChangedCallback HasVisibleContextTabGroupChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
RibbonIsVisibleChanged
Event that is raised when RibbonIsVisible property is changed.
Declaration
public event PropertyChangedCallback RibbonIsVisibleChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |