Frame.Source Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the uniform resource identifier (URI) of the current content, or the URI of new content that is currently being navigated to.
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
Property Value
A Uri that contains the URI for the current content, or the content that is currently being navigated to.
- Attributes
Examples
The following example shows how to navigate to a uniform resource identifier (URI) by setting the Source property.
// 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)
Remarks
Note
Uniform resource identifiers (URIs) can be either relative or absolute. For more information, see Pack URIs in WPF.
Dependency Property Information
Identifier field | SourceProperty |
Metadata properties set to true |
Journal |
Applies to
.NET
フィードバック
https://aka.ms/ContentUserFeedback」を参照してください。
以下は間もなく提供いたします。2024 年を通じて、コンテンツのフィードバック メカニズムとして GitHub の issue を段階的に廃止し、新しいフィードバック システムに置き換えます。 詳細については、「フィードバックの送信と表示