TitleBar class¶
Attributes: [TemplatePart] [TemplatePart] [TemplatePart] [TemplatePart] [TemplatePart] [TemplatePart]
Defined in
Namespace: CrissCross.WPF.UI.Controls
Assembly: CrissCross.WPF.UI.dll
Full name: CrissCross.WPF.UI.Controls.TitleBar
Modifiers: public
Summary¶
Custom navigation buttons for the window.
Applies to
net10.0-windows10.0.19041, net9.0-windows10.0.19041, net8.0-windows10.0.19041, net481
Class hierarchy
classDiagram
class TitleBar
class Control
Control <|-- TitleBar
class IThemeControl {
<>
}
IThemeControl <|.. TitleBar
Inherits from: Control
Implements: IThemeControl
Constructors¶
| Name | Summary |
|---|---|
| .ctor | Initializes a new instance of the [TitleBar](# class. |
Properties¶
| Name | Summary |
|---|---|
| ApplicationTheme | Gets the theme is currently set. |
| Title | Gets or sets title displayed on the left. |
| Header | Gets or sets the content displayed in the [TitleBar](# |
| TitleContent | Gets or sets the content of the title. |
| ButtonsForeground | Gets or sets foreground of the navigation buttons. |
| ButtonsBackground | Gets or sets background of the navigation buttons when hovered. |
| IsMaximized | Gets a value indicating whether gets or sets information whether the current window is maximized. |
| ForceShutdown | Gets or sets a value indicating whether gets or sets information whether the controls affect main application window. |
| ShowMaximize | Gets or sets a value indicating whether gets or sets information whether to show maximize button. |
| ShowMinimize | Gets or sets a value indicating whether gets or sets information whether to show minimize button. |
| ShowHelp | Gets or sets a value indicating whether gets or sets information whether to show help button. |
| ShowClose | Gets or sets a value indicating whether gets or sets information whether to show close button. |
| CanMaximize | Gets or sets a value indicating whether enables or disables the maximize functionality if disables the MaximizeActionOverride action won't be called. |
| Icon | Gets or sets titlebar icon. |
| Content | Gets or sets the content. |
| CloseWindowByDoubleClickOnIcon | Gets or sets a value indicating whether enables or disable closing the window by double clicking on the icon. |
| TemplateButtonCommand | Gets command triggered after clicking the titlebar button. |
| MaximizeActionOverride | Gets or sets lets you override the behavior of the Maximize/Restore button with an Action. |
| MinimizeActionOverride | Gets or sets lets you override the behavior of the Minimize button with an Action. |
| OnTemplateButtonClickCommand |
Fields¶
| Name | Summary |
|---|---|
| static ApplicationThemeProperty | Property for [ApplicationTheme](# |
| static TitleProperty | Property for [Title](# |
| static HeaderProperty | Property for [Header](# |
| static TitleContentProperty | The title content property. |
| static ButtonsForegroundProperty | Property for [ButtonsForeground](# |
| static ButtonsBackgroundProperty | Property for [ButtonsBackground](# |
| static IsMaximizedProperty | Property for [IsMaximized](# |
| static ForceShutdownProperty | Property for [ForceShutdown](# |
| static ShowMaximizeProperty | Property for [ShowMaximize](# |
| static ShowMinimizeProperty | Property for [ShowMinimize](# |
| static ShowHelpProperty | Property for [ShowHelp](# |
| static ShowCloseProperty | Property for [ShowClose](# |
| static CanMaximizeProperty | Property for [CanMaximize](# |
| static IconProperty | Property for [Icon](# |
| static ContentProperty | The content property. |
| static CloseWindowByDoubleClickOnIconProperty | Property for [CloseWindowByDoubleClickOnIcon](# |
| static CloseClickedEvent | Routed event for [CloseClicked](# |
| static MaximizeClickedEvent | Routed event for [MaximizeClicked](# |
| static MinimizeClickedEvent | Routed event for [MinimizeClicked](# |
| static HelpClickedEvent | Routed event for [HelpClicked](# |
| static TemplateButtonCommandProperty | Property for [TemplateButtonCommand](# |
Methods¶
| Name | Summary |
|---|---|
| OnApplyTemplate | Invoked whenever application code or an internal process, such as a rebuilding layout pass, calls the ApplyTemplate method. |
| OnInitialized | |
| OnLoaded | Called when [loaded]. |
| OnThemeChanged | This virtual method is triggered when the app's theme changes. |
Events¶
| Name | Summary |
|---|---|
| CloseClicked | Event triggered after clicking close button. |
| MaximizeClicked | Event triggered after clicking maximize or restore button. |
| MinimizeClicked | Event triggered after clicking minimize button. |
| HelpClicked | Event triggered after clicking help button |