1 implementation of IWindow
Microsoft.Maui.Controls (1)
Window\Window.cs (1)
15 public partial class Window : NavigableElement, IWindow, IToolbarElement, IMenuBarElement, IFlowDirectionController, IWindowController
77 references to IWindow
Microsoft.Maui (38)
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); 40 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) =>
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)
338 element == null || element is IApplication || element is IWindow; 422 IReadOnlyList<IWindow> IApplication.Windows => _windows; 426 IWindow IApplication.CreateWindow(IActivationState? activationState) 459 void IApplication.OpenWindow(IWindow window) 467 void IApplication.CloseWindow(IWindow window) 472 void IApplication.ActivateWindow(IWindow window)
NavigationPage\NavigationPage.cs (5)
528 var rootPage = this.FindParentWith(x => (x is IWindow te || Window.Navigation.ModalStack.Contains(x)), true); 532 if (rootPage is not IWindow && te is IWindow) 556 if (flyoutPage != null && flyoutPage.Parent is IWindow && flyoutPage.Toolbar == _toolbar) 574 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)
666 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)); 413 IView? IWindow.Content => 486 void IWindow.Created() 499 void IWindow.Activated() 509 void IWindow.Deactivated() 519 void IWindow.Stopped() 526 void IWindow.Destroying() 543 void IWindow.Resumed() 550 void IWindow.Backgrounding(IPersistedState state) 556 void IWindow.DisplayDensityChanged(float displayDensity) 562 float IWindow.RequestDisplayDensity() 565 var result = Handler?.InvokeWithResult(nameof(IWindow.RequestDisplayDensity), request); 569 FlowDirection IWindow.FlowDirection 588 public float DisplayDensity => ((IWindow)this).RequestDisplayDensity(); 655 Handler?.UpdateValue(nameof(IWindow.FlowDirection)); 675 bool IWindow.BackButtonClicked()