Share via


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 或更新版本中的應用程式,不建議將TopAppBar命令放在 和 BottomAppBar 中。

在 XAML 中,請確定您在與可能已經定義的其他屬性元素相同的區域中指定 Page.BottomAppBar 屬性元素,例如 Page.TopAppBarPage.Resources。 XAML 語言會強制您無法在設定 Content 的 XAML 內容之間混合屬性元素,例如典型的根 Grid 元素。 如需 XAML 語法的詳細資訊,請參閱 XAML 語法指南

適用於

另請參閱