Share via


Window.Current Property

Definition

Always returns null.

static Window Current();
public static Window Current { get; }
var window = Window.current;
Public Shared ReadOnly Property Current As Window

Property Value

Always null.

Remarks

As an alternative to Window.Current, you can track instances of Window in your app code. For more info, see the following articles.

Note

The XAML Window class has several properties that were carried over from the UWP Windows.UI.Xaml.Window class, but are not supported in WinUI apps. These properties always have a null value and are not used in WinUI apps. For more info, see Windowing functionality migration.

Applies to

See also