语言

NavigationView.PaneFooter 属性

定义

获取或设置窗格页脚的内容。

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 事件。 仅当 NavigationView.MenuItem 位于 NavigationView.MenuItems 或 NavigationView.FooterMenuItems 集合中时,才会引发 ItemInvoked 事件。

PaneFooter 放置在导航窗格的末尾,但在 FooterMenuItems 之前。

适用于