Frame.CurrentSourcePageType property

Applies to Windows and Windows Phone

Gets a type reference for the content that is currently displayed.

Syntax


Public ReadOnly Property CurrentSourcePageType As Type

Property value

Type: System.Type [.NET] | TypeName [C++]

A type reference for the content that is currently displayed.

Remarks

CurrentSourcePageType and SourcePageType are normally the same value. However, if the frame calls Navigate and the navigation is still in progress, the CurrentSourcePageType is the value before the navigation and the SourcePageType is the value being navigated to.

Tip  If you are programming using a Microsoft .NET language (C# or Microsoft Visual Basic), the TypeName type projects as System.Type. When programming using C#, it is common to use the typeof operator to get references to the System.Type of a type. In Visual Basic, use GetType.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.UI.Xaml.Controls
Windows::UI::Xaml::Controls [C++]

Metadata

Windows.winmd

See also

Frame
Navigating
Page.OnNavigatingFrom
XAML Navigation sample

 

 

Show:
© 2014 Microsoft