Page.BottomAppBar Property
Definition
Gets a reference to an AppBar displayed at the bottom of the page, if any.
Equivalent WinUI property: Microsoft.UI.Xaml.Controls.Page.BottomAppBar.
AppBar BottomAppBar();
void BottomAppBar(AppBar value);
public AppBar BottomAppBar { get; set; }
var appBar = page.bottomAppBar;
page.bottomAppBar = appBar;
Public Property BottomAppBar As AppBar
<Page ...>
<Page.BottomAppBar>
<AppBar .../>
</Page.BottomAppBar>
</Page>
Property Value
A reference to an AppBar displayed at the bottom of the page, or null.
Examples
For example code that adds an AppBar to a page, see Quickstart: adding app bars or How to share an app bar across pages. For a complete sample that uses many of the Page and Frame features together, see XAML Navigation sample.
Remarks
In XAML, make sure you specify the Page.BottomAppBar
property element in the same area as other property elements that may already be defined, like Page.TopAppBar
or Page.Resources
. The XAML language enforces that you can't mix the property elements between the XAML content that is setting Content, such as the typical root Grid element. For more info on XAML syntax, see XAML syntax guide.