NavigationWindow.Source 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定目前內容的統一資源識別碼(URI),或當前正在導航的新內容的 URI。
public:
property Uri ^ Source { Uri ^ get(); void set(Uri ^ value); };
public Uri Source { get; set; }
member this.Source : Uri with get, set
Public Property Source As Uri
屬性值
目前內容的 URI,或是目前正在瀏覽的內容。
範例
以下範例說明如何透過設定 Source 屬性來導航至統一資源識別碼(URI)。
// Navigate to URI using the Source property
this.Source = new Uri("HomePage.xaml", UriKind.Relative);
' Navigate to URI using the Source property
Me.Source = New Uri("HomePage.xaml", UriKind.Relative)
備註
備註
統一資源識別碼(URI)可以是相對的,也可以是絕對的。 欲了解更多資訊,請參閱 WPF 中的 Pack URI。
相依財產資訊
| 項目 | 價值 |
|---|---|
| 識別碼欄位 | Source |
元資料屬性設為 true |
Journal |