Skip to content

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

NameSummary
.ctorInitializes a new instance of the [TitleBar](# class.

Properties

NameSummary
ApplicationThemeGets the theme is currently set.
TitleGets or sets title displayed on the left.
HeaderGets or sets the content displayed in the [TitleBar](#
TitleContentGets or sets the content of the title.
ButtonsForegroundGets or sets foreground of the navigation buttons.
ButtonsBackgroundGets or sets background of the navigation buttons when hovered.
IsMaximizedGets a value indicating whether gets or sets information whether the current window is maximized.
ForceShutdownGets or sets a value indicating whether gets or sets information whether the controls affect main application window.
ShowMaximizeGets or sets a value indicating whether gets or sets information whether to show maximize button.
ShowMinimizeGets or sets a value indicating whether gets or sets information whether to show minimize button.
ShowHelpGets or sets a value indicating whether gets or sets information whether to show help button.
ShowCloseGets or sets a value indicating whether gets or sets information whether to show close button.
CanMaximizeGets or sets a value indicating whether enables or disables the maximize functionality if disables the MaximizeActionOverride action won't be called.
IconGets or sets titlebar icon.
ContentGets or sets the content.
CloseWindowByDoubleClickOnIconGets or sets a value indicating whether enables or disable closing the window by double clicking on the icon.
TemplateButtonCommandGets command triggered after clicking the titlebar button.
MaximizeActionOverrideGets or sets lets you override the behavior of the Maximize/Restore button with an Action.
MinimizeActionOverrideGets or sets lets you override the behavior of the Minimize button with an Action.
OnTemplateButtonClickCommand

Fields

NameSummary
static ApplicationThemePropertyProperty for [ApplicationTheme](#
static TitlePropertyProperty for [Title](#
static HeaderPropertyProperty for [Header](#
static TitleContentPropertyThe title content property.
static ButtonsForegroundPropertyProperty for [ButtonsForeground](#
static ButtonsBackgroundPropertyProperty for [ButtonsBackground](#
static IsMaximizedPropertyProperty for [IsMaximized](#
static ForceShutdownPropertyProperty for [ForceShutdown](#
static ShowMaximizePropertyProperty for [ShowMaximize](#
static ShowMinimizePropertyProperty for [ShowMinimize](#
static ShowHelpPropertyProperty for [ShowHelp](#
static ShowClosePropertyProperty for [ShowClose](#
static CanMaximizePropertyProperty for [CanMaximize](#
static IconPropertyProperty for [Icon](#
static ContentPropertyThe content property.
static CloseWindowByDoubleClickOnIconPropertyProperty for [CloseWindowByDoubleClickOnIcon](#
static CloseClickedEventRouted event for [CloseClicked](#
static MaximizeClickedEventRouted event for [MaximizeClicked](#
static MinimizeClickedEventRouted event for [MinimizeClicked](#
static HelpClickedEventRouted event for [HelpClicked](#
static TemplateButtonCommandPropertyProperty for [TemplateButtonCommand](#

Methods

NameSummary
OnApplyTemplateInvoked whenever application code or an internal process, such as a rebuilding layout pass, calls the ApplyTemplate method.
OnInitialized
OnLoadedCalled when [loaded].
OnThemeChangedThis virtual method is triggered when the app's theme changes.

Events

NameSummary
CloseClickedEvent triggered after clicking close button.
MaximizeClickedEvent triggered after clicking maximize or restore button.
MinimizeClickedEvent triggered after clicking minimize button.
HelpClickedEvent triggered after clicking help button
Inherited members