13 references to Windows
Microsoft.Maui.Controls (13)
Application\Application.cs (8)
94
if (
Windows
.Count == 0)
97
return
Windows
[0].Page;
120
if (
Windows
.Count == 1)
122
Windows
[0].Page = value;
411
IReadOnlyList<Maui.IVisualTreeElement> IVisualTreeElement.GetVisualChildren() => this.
Windows
;
536
if (
Windows
.Count > 1)
541
if (
Windows
.Count > 0)
542
return
Windows
[0];
Embedding\EmbeddingExtensions.cs (1)
77
if (embeddedApp.Application is Application app && !app.
Windows
.Contains(window))
Shell\Shell.cs (4)
956
if (Application.Current is null || Application.Current.
Windows
.Count == 0)
959
if (Application.Current.
Windows
.Count == 1)
961
return Application.Current.
Windows
[0].Page as Shell;
968
foreach (var window in Application.Current.
Windows
)