NavigationView.PaneCustomContent プロパティ

定義

NavigationView ペインに表示される UI 要素を取得または設定します。

UWP 用の同等の WinUI 2 API: Microsoft.UI.Xaml.Controls.NavigationView.PaneCustomContent (Windows アプリ SDKの WinUI の場合は、Windows アプリ SDK名前空間を参照してください)。

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

void PaneCustomContent(UIElement value);
public UIElement PaneCustomContent { get; set; }
var uIElement = navigationView.paneCustomContent;
navigationView.paneCustomContent = uIElement;
Public Property PaneCustomContent As UIElement

プロパティ値

NavigationView ペインに表示される要素。

Windows の要件

デバイス ファミリ
Windows 10, version 1809 (10.0.17763.0 で導入)
API contract
Windows.Foundation.UniversalApiContract (v7.0 で導入)

注釈

PaneCustomContent プロパティは、1 つの UIElement を受け取ります。 これは通常、追加の要素を含むレイアウト パネル (Grid や StackPanel など) です。

適用対象