NavigationView.PaneFooter 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定窗格頁腳的內容。
public:
property UIElement ^ PaneFooter { UIElement ^ get(); void set(UIElement ^ value); };
UIElement PaneFooter();
void PaneFooter(UIElement value);
public UIElement PaneFooter { get; set; }
var uIElement = navigationView.paneFooter;
navigationView.paneFooter = uIElement;
Public Property PaneFooter As UIElement
<NavigationView>
<NavigationView.PaneFooter>
footerElement
</NavigationView.PaneFooter>
</NavigationView>
屬性值
窗格頁腳的內容。 預設是 null。
備註
PaneFooter 屬性會使用單一的 UIElement,該介面可以是包含額外元素的版面面板。
你可以將任何內容放入 PaneFooter,但不應該放入 NavigationViewItems,因為它們不會參與 NavigationView 的選取模型——點擊它們不會觸發 NavigationView.SelectionChanged 事件。
如果你在 PaneFooter 放置 NavigationViewItem ,則不會觸發 NavigationView.ItemInvoked 事件。 ItemInvoked 事件僅在 NavigationView.MenuItems 或 NavigationView.FooterMenuItems 集合中時才會被觸發。
PaneFooter 會放在導航窗格的末尾,但位於 FooterMenuItems 之前。