Share via


Frame.CurrentSourcePageType Property

Definition

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

public:
 property TypeName CurrentSourcePageType { TypeName get(); };
TypeName CurrentSourcePageType();
public System.Type CurrentSourcePageType { get; }
var typeName = frame.currentSourcePageType;
Public ReadOnly Property CurrentSourcePageType As Type

Property Value

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#), 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.

If you're using C++/WinRT you can use the winrt::xaml_typename<T>() helper function to create a TypeName object. See winrt::xaml_typename function template for more details, and a code example.

Applies to

See also