AppBar class¶
Defined in
Namespace: CrissCross.Avalonia.UI.Controls
Assembly: CrissCross.Avalonia.UI.dll
Full name: CrissCross.Avalonia.UI.Controls.AppBar
Modifiers: public
Summary¶
A bottom application bar that can show and hide with animation, containing left and right content areas.
Applies to
net10.0, net10.0-browserwasm1.0, net10.0-desktop1.0, net9.0, net9.0-browserwasm1.0, net9.0-desktop1.0, net8.0, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.2, net8.0-macos14.5, net8.0-tvos17.2, netstandard2.1, net471
Class hierarchy
classDiagram
class AppBar
class TemplatedControl
TemplatedControl <|-- AppBar
Inherits from: TemplatedControl
Constructors¶
| Name | Summary |
|---|---|
| .ctor | Initializes a new instance of the [AppBar](# class. |
Properties¶
| Name | Summary |
|---|---|
| AppBarEnabled | Gets or sets a value indicating whether the application bar is enabled. |
| AppBarIsSticky | Gets or sets a value indicating whether the application bar stays open until explicitly closed. |
| AppBarLeft | Gets or sets the left-aligned content items. |
| AppBarRight | Gets or sets the right-aligned content items. |
| AppBarHeight | Gets or sets the height of the application bar when expanded. |
| IsOpen | Gets or sets a value indicating whether the application bar is open. |
Fields¶
| Name | Summary |
|---|---|
| static AppBarEnabledProperty | Property for [AppBarEnabled](# |
| static AppBarIsStickyProperty | Property for [AppBarIsSticky](# |
| static AppBarLeftProperty | Property for [AppBarLeft](# |
| static AppBarRightProperty | Property for [AppBarRight](# |
| static AppBarHeightProperty | Property for [AppBarHeight](# |
| static IsOpenProperty | Property for [IsOpen](# |
Methods¶
| Name | Summary |
|---|---|
| ShowAppBar | Shows the application bar. |
| HideAppBar | Hides the application bar. |
| OnApplyTemplate | Called when the control's template is applied. In simple terms, this means the method is called just before the control is displayed. |
| OnPointerEntered | Invoked when an unhandled PointerEnteredEvent reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. |
| OnPointerExited | Invoked when an unhandled PointerExitedEvent reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. |
| OnPointerPressed | Invoked when an unhandled PointerPressedEvent reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. |