1 implementation of IWindow
Microsoft.Maui.Controls (1)
Window\Window.cs (1)
15
public partial class Window : NavigableElement,
IWindow
, IToolbarElement, IMenuBarElement, IFlowDirectionController, IWindowController
80 references to IWindow
Microsoft.Maui (41)
Core\Extensions\VisualTreeElementExtensions.cs (3)
42
/// <returns><see cref="
IWindow
"/> if element is contained within a Window, else returns null.</returns>
43
public static
IWindow
? GetVisualElementWindow(this IVisualTreeElement element)
45
if (element is
IWindow
window)
Core\IApplication.cs (5)
14
IReadOnlyList<
IWindow
> Windows { get; }
21
IWindow
CreateWindow(IActivationState? activationState);
27
void OpenWindow(
IWindow
window);
33
void CloseWindow(
IWindow
window);
42
void ActivateWindow(
IWindow
window) { }
Core\IWindowOverlay.cs (2)
30
/// Gets the containing <see cref="
IWindow
"/>.
32
IWindow
Window { get; }
Handlers\Window\IWindowHandler.cs (1)
17
new
IWindow
VirtualView { get; }
Handlers\Window\WindowHandler.cs (10)
17
public static IPropertyMapper<
IWindow
, IWindowHandler> Mapper = new PropertyMapper<
IWindow
, IWindowHandler>(ElementHandler.ElementMapper)
19
[nameof(
IWindow
.Title)] = MapTitle,
20
[nameof(
IWindow
.Content)] = MapContent,
21
[nameof(
IWindow
.X)] = MapX,
22
[nameof(
IWindow
.Y)] = MapY,
23
[nameof(
IWindow
.Width)] = MapWidth,
24
[nameof(
IWindow
.Height)] = MapHeight,
44
public static CommandMapper<
IWindow
, IWindowHandler> CommandMapper = new(ElementCommandMapper)
46
[nameof(
IWindow
.RequestDisplayDensity)] = MapRequestDisplayDensity,
Handlers\Window\WindowHandler.Standard.cs (8)
5
public partial class WindowHandler : ElementHandler<
IWindow
, object>
9
public static void MapTitle(IWindowHandler handler,
IWindow
window) { }
11
public static void MapX(IWindowHandler handler,
IWindow
view) { }
13
public static void MapY(IWindowHandler handler,
IWindow
view) { }
15
public static void MapWidth(IWindowHandler handler,
IWindow
view) { }
17
public static void MapHeight(IWindowHandler handler,
IWindow
view) { }
19
public static void MapContent(IWindowHandler handler,
IWindow
window) { }
21
public static void MapRequestDisplayDensity(IWindowHandler handler,
IWindow
window, object? args) { }
Platform\ElementExtensions.cs (1)
165
public static void SetWindowHandler(this PlatformWindow platformWindow,
IWindow
window, IMauiContext context) =>
Platform\Standard\ViewExtensions.cs (1)
81
internal static
IWindow
? GetHostedWindow(this IView? view)
Platform\Standard\WindowExtensions.cs (1)
7
internal static DisplayOrientation GetOrientation(this
IWindow
? window) =>
Platform\WindowExtensions.cs (3)
19
internal static IReadOnlyList<
IWindow
> GetWindows()
22
return new List<
IWindow
>();
25
return new List<
IWindow
>();
VisualDiagnostics\VisualDiagnostics.cs (2)
93
public static async Task<byte[]?> CaptureAsPngAsync(
IWindow
window)
99
public static async Task<byte[]?> CaptureAsJpegAsync(
IWindow
window, int quality = 80)
VisualDiagnostics\VisualDiagnosticsOverlay.cs (1)
19
public VisualDiagnosticsOverlay(
IWindow
window)
WindowExtensions.cs (1)
18
public static Task<IScreenshotResult?> CaptureAsync(this
IWindow
window)
WindowOverlay\WindowOverlay.cs (2)
30
public WindowOverlay(
IWindow
window)
36
public
IWindow
Window { get; }
Microsoft.Maui.Controls (39)
Application\Application.cs (6)
340
element == null || element is IApplication || element is
IWindow
;
424
IReadOnlyList<
IWindow
> IApplication.Windows => _windows;
428
IWindow
IApplication.CreateWindow(IActivationState? activationState)
461
void IApplication.OpenWindow(
IWindow
window)
469
void IApplication.CloseWindow(
IWindow
window)
474
void IApplication.ActivateWindow(
IWindow
window)
NavigationPage\NavigationPage.cs (5)
525
var rootPage = this.FindParentWith(x => (x is
IWindow
te || Window.Navigation.ModalStack.Contains(x)), true);
529
if (rootPage is not
IWindow
&& te is
IWindow
)
553
if (flyoutPage != null && flyoutPage.Parent is
IWindow
&& flyoutPage.Toolbar == _toolbar)
571
if (flyoutPage != null && flyoutPage.Parent is
IWindow
)
NavigationProxy.cs (1)
147
if (modal.RealParent is not null && modal.RealParent is not
IWindow
)
Page\Page.cs (2)
671
var
window = this.FindParentOfType<
IWindow
>();
Window\Window.cs (25)
174
double
IWindow
.X => GetPositionCoordinate(XProperty);
176
double
IWindow
.Y => GetPositionCoordinate(YProperty);
178
double
IWindow
.Width => GetSizeCoordinate(WidthProperty);
180
double
IWindow
.Height => GetSizeCoordinate(HeightProperty);
182
double
IWindow
.MaximumWidth => GetSizeCoordinate(MaximumWidthProperty);
184
double
IWindow
.MaximumHeight => GetSizeCoordinate(MaximumHeightProperty);
186
double
IWindow
.MinimumWidth => GetSizeCoordinate(MinimumWidthProperty);
188
double
IWindow
.MinimumHeight => GetSizeCoordinate(MinimumHeightProperty);
212
void
IWindow
.FrameChanged(Rect frame)
277
Handler?.UpdateValue(nameof(
IWindow
.Content));
414
IView?
IWindow
.Content =>
487
void
IWindow
.Created()
500
void
IWindow
.Activated()
510
void
IWindow
.Deactivated()
520
void
IWindow
.Stopped()
527
void
IWindow
.Destroying()
544
void
IWindow
.Resumed()
551
void
IWindow
.Backgrounding(IPersistedState state)
557
void
IWindow
.DisplayDensityChanged(float displayDensity)
563
float
IWindow
.RequestDisplayDensity()
566
var result = Handler?.InvokeWithResult(nameof(
IWindow
.RequestDisplayDensity), request);
570
FlowDirection
IWindow
.FlowDirection
589
public float DisplayDensity => ((
IWindow
)this).RequestDisplayDensity();
656
Handler?.UpdateValue(nameof(
IWindow
.FlowDirection));
676
bool
IWindow
.BackButtonClicked()