Class TitleBar
TitleBar control.
Implements
Inherited Members
Namespace: WinUIEx
Assembly: WinUIEx.dll
Syntax
[Obsolete("Use Windows App SDK's TitleBar control instead.")]
[WinRTRuntimeClassName("Microsoft.UI.Xaml.IUIElementOverrides")]
[WinRTExposedType(typeof(TitleBarWinRTTypeDetails))]
public class TitleBar : Control, IEquatable<DependencyObject>, IAnimationObject, IVisualElement, IVisualElement2, IEquatable<UIElement>, IEquatable<FrameworkElement>, IWinRTObject, IDynamicInterfaceCastable, IEquatable<Control>
Constructors
| Name | Description |
|---|---|
| TitleBar() | Initializes a new instance of the TitleBar class. |
Fields
| Name | Description |
|---|---|
| ContentProperty | Identifies the Content dependency property. |
| FooterProperty | Identifies the Footer dependency property. |
| HeaderProperty | Identifies the Header dependency property. |
| IconSourceProperty | Identifies the IconSource dependency property. |
| IsBackButtonVisibleProperty | Identifies the IsBackButtonVisible dependency property. |
| IsBackEnabledProperty | Identifies the IsBackEnabled dependency property. |
| IsPaneToggleButtonVisibleProperty | Identifies the IsPaneToggleButtonVisible dependency property. |
| SubtitleProperty | Identifies the Subtitle dependency property. |
| TemplateSettingsProperty | Identifies the TemplateSettings dependency property. |
| TitleProperty | Identifies the Title dependency property. |
Properties
| Name | Description |
|---|---|
| Content | Gets or sets the content for the titlebar |
| Footer | Gets or sets the footer of the titlebar |
| Header | Gets or sets the Header content for the titlebar |
| IconSource | Gets or sets the Icon for the titlebar |
| IsBackButtonVisible | Gets or sets a value indicating whether the back button is visible |
| IsBackEnabled | Gets or sets a value indicating whether the back button is enabled |
| IsPaneToggleButtonVisible | Gets or sets a value indicating whether the pane toggle button is visible |
| Subtitle | Gets or sets the Subtitle for the titlebar |
| TemplateSettings | Gets the template settings for the titlebar |
| Title | Gets or sets the Window title |
Methods
| Name | Description |
|---|---|
| ~TitleBar() | Finalizer |
| OnApplyTemplate() | Invoked whenever application code or internal processes (such as a rebuilding layout pass) call ApplyTemplate. In simplest terms, this means the method is called just before a UI element displays in your app. Override this method to influence the default post-template logic of a class. |
| OnCreateAutomationPeer() | When implemented in a derived class, returns class-specific AutomationPeer implementations for the Microsoft UI Automation infrastructure. |
Events
| Name | Description |
|---|---|
| BackRequested | Raised when the back button is clicked |
| PaneToggleRequested | Raised when the Pane toggle button is clicked |