语言

Page.BottomAppBar 属性

定义

获取或设置页面底部显示的 AppBar 。

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>

属性值

对页面顶部显示的 AppBar 的引用(如果有);否则,为 null.

注解

注释

对于Windows 10或更高版本中的应用,不建议在TopAppBarBottomAppBar中放置命令。

在 XAML 中,请确保在与已定义的其他属性元素相同的区域中指定 Page.BottomAppBar 属性元素,例如 Page.TopAppBar 或 Page.Resources。 XAML 语言强制你不能混合设置 内容(例如典型根 网格 元素)的 XAML 内容之间的属性元素。 有关 XAML 语法的详细信息,请参阅 XAML 语法指南。

适用于

另请参阅