Share via


NavigationView.PaneFooter 属性

定义

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

适用于 UWP 的等效 WinUI 2 APIWindows 应用 SDK中 WinUI 的 Microsoft.UI.Xaml.Controls.NavigationView.PaneFooter (,请参阅Windows 应用 SDK命名空间) 。

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,它可以是包含其他元素的布局面板。

如果将 NavigationViewItem 放置在 PaneFooter 中,它不会引发 NavigationView.ItemInvoked 事件。 仅当 NavigationViewItem 位于 NavigationView.MenuItems 集合中时,才会引发 ItemInvoked 事件。

适用于