Frame.Source プロパティ

定義

現在のコンテンツの Uniform Resource Identifier (URI) (移動中の場合は移動先の新しいコンテンツの URI) を取得または設定します。

public:
 property Uri ^ Source { Uri ^ get(); void set(Uri ^ value); };
[System.ComponentModel.Bindable(true)]
public Uri Source { get; set; }
[<System.ComponentModel.Bindable(true)>]
member this.Source : Uri with get, set
Public Property Source As Uri

プロパティ値

Uri

Uri現在のコンテンツの URI、または現在移動中のコンテンツを含む A。

属性

次の例は、プロパティを設定して、UNIFORM Resource Identifier (URI) に移動する方法を Source 示しています。

// 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)

注釈

以下を参照してください。NavigationService.Source

注意

Uniform Resource Identifier (URI) は、相対または絶対で指定できます。 詳細については、「WPF におけるパック URI」を参照してください。

依存プロパティ情報

識別子フィールド SourceProperty
に設定されたメタデータ プロパティ true Journal

適用対象