NavigationView.PaneFooter 屬性

定義

取得或設定窗格頁尾的內容。

本檔適用于 Windows 應用程式 SDK 中適用于 WinUI 的 WinUI 2 for UWP (,請參閱Windows 應用程式 SDK命名空間) 。

public:
 property UIElement ^ PaneFooter { UIElement ^ get(); void set(UIElement ^ value); };
UIElement PaneFooter();

void PaneFooter(UIElement value);
public UIElement PaneFooter { get; set; }
Public Property PaneFooter As UIElement
<NavigationView>
  <NavigationView.PaneFooter>
    footerElement
  </NavigationView.PaneFooter>
</NavigationView>

屬性值

窗格頁尾的內容。 預設值為 null

備註

PaneFooter 屬性會採用單一 UIElement,它可以是包含其他元素的版面配置面板。

您可以將任何內容放在 PaneFooter 中,但不應該將 NavigationViewItems 放入其中,因為它們不會參與 NavigationView 的選取模型 - 按一下它們將不會引發 NavigationView.SelectionChanged 事件。

如果您在 PaneFooter 中放置 NavigationViewItem ,它將不會引發 NavigationView.ItemInvoked 事件。 只有在 NavigationView.MenuItem 位於 NavigationView.MenuItemsNavigationView.FooterMenuItems 集合時,才會引發 ItemInvoked 事件。

PaneFooter 會放在流覽窗格的結尾,但在 FooterMenuItems 之前。

適用於