Class TitleBar
TitleBar control.
Inheritance
Namespace: WinUIEx
Assembly: WinUIEx.dll
Syntax
public class TitleBar : Control
Constructors
| Improve this Doc View SourceTitleBar()
Initializes a new instance of the TitleBar class.
Declaration
public TitleBar()
Fields
| Improve this Doc View SourceContentProperty
Identifies the Content dependency property.
Declaration
public static readonly DependencyProperty ContentProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
FooterProperty
Identifies the Footer dependency property.
Declaration
public static readonly DependencyProperty FooterProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
HeaderProperty
Identifies the Header dependency property.
Declaration
public static readonly DependencyProperty HeaderProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
IconSourceProperty
Identifies the IconSource dependency property.
Declaration
public static readonly DependencyProperty IconSourceProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
IsBackButtonVisibleProperty
Identifies the IsBackButtonVisible dependency property.
Declaration
public static readonly DependencyProperty IsBackButtonVisibleProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
IsBackEnabledProperty
Identifies the IsBackEnabled dependency property.
Declaration
public static readonly DependencyProperty IsBackEnabledProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
IsPaneToggleButtonVisibleProperty
Identifies the IsPaneToggleButtonVisible dependency property.
Declaration
public static readonly DependencyProperty IsPaneToggleButtonVisibleProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
SubtitleProperty
Identifies the Subtitle dependency property.
Declaration
public static readonly DependencyProperty SubtitleProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
TemplateSettingsProperty
Identifies the TemplateSettings dependency property.
Declaration
public static readonly DependencyProperty TemplateSettingsProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
TitleProperty
Identifies the Title dependency property.
Declaration
public static readonly DependencyProperty TitleProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
Properties
| Improve this Doc View SourceContent
Gets or sets the content for the titlebar
Declaration
public object Content { get; set; }
Property Value
Type | Description |
---|---|
System.Object |
Footer
Gets or sets the footer of the titlebar
Declaration
public object Footer { get; set; }
Property Value
Type | Description |
---|---|
System.Object |
Header
Gets or sets the Header content for the titlebar
Declaration
public object Header { get; set; }
Property Value
Type | Description |
---|---|
System.Object |
IconSource
Gets or sets the Icon for the titlebar
Declaration
public IconSource IconSource { get; set; }
Property Value
Type | Description |
---|---|
IconSource |
IsBackButtonVisible
Gets or sets a value indicating whether the back button is visible
Declaration
public bool IsBackButtonVisible { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsBackEnabled
Gets or sets a value indicating whether the back button is enabled
Declaration
public bool IsBackEnabled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsPaneToggleButtonVisible
Gets or sets a value indicating whether the pane toggle button is visible
Declaration
public bool IsPaneToggleButtonVisible { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Subtitle
Gets or sets the Subtitle for the titlebar
Declaration
public string Subtitle { get; set; }
Property Value
Type | Description |
---|---|
System.String |
TemplateSettings
Gets the template settings for the titlebar
Declaration
public TitleBarTemplateSettings TemplateSettings { get; }
Property Value
Type | Description |
---|---|
TitleBarTemplateSettings |
Title
Gets or sets the Window title
Declaration
public string Title { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
| Improve this Doc View SourceFinalize()
Finalizer
Declaration
protected void Finalize()
OnApplyTemplate()
Declaration
protected override void OnApplyTemplate()
OnCreateAutomationPeer()
Declaration
protected override AutomationPeer OnCreateAutomationPeer()
Returns
Type | Description |
---|---|
AutomationPeer |
Events
| Improve this Doc View SourceBackRequested
Raised when the back button is clicked
Declaration
public event Foundation.TypedEventHandler<TitleBar, object>? BackRequested
Event Type
Type | Description |
---|---|
System.Nullable<Windows.Foundation.TypedEventHandler<TitleBar, System.Object>> |
PaneToggleRequested
Raised when the Pane toggle button is clicked
Declaration
public event Foundation.TypedEventHandler<TitleBar, object>? PaneToggleRequested
Event Type
Type | Description |
---|---|
System.Nullable<Windows.Foundation.TypedEventHandler<TitleBar, System.Object>> |