IWindow Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides the ability to create, configure, show, and manage Windows.
public interface class IWindow : Microsoft::Maui::ITitledElement
public interface IWindow : Microsoft.Maui.ITitledElement
type IWindow = interface
interface ITitledElement
interface IElement
Public Interface IWindow
Implements ITitledElement
- Derived
- Implements
Properties
Content |
Gets the current Page displayed in the Window. |
FlowDirection |
Direction in which the UI elements are scanned by the eye. |
Handler |
Gets or sets the View Handler of the Element. (Inherited from IElement) |
Height |
Gets the specified height of the IWindow. |
MaximumHeight |
Gets the specified maximum height constraint of the IWindow, between zero and double.PositiveInfinity. |
MaximumWidth |
Gets the specified maximum width constraint of the IWindow, between zero and double.PositiveInfinity. |
MinimumHeight |
Gets the specified minimum height constraint of the IWindow, between zero and double.PositiveInfinity. |
MinimumWidth |
Gets the specified minimum width constraint of the IWindow, between zero and double.PositiveInfinity. |
Overlays |
Gets the read only collection of Window Overlays on top of the Window. |
Parent |
Gets the Parent of the Element. (Inherited from IElement) |
Title |
Gets the title of this element. (Inherited from ITitledElement) |
VisualDiagnosticsOverlay |
Gets the current visual diagnostics overlay for the Window. |
Width |
Gets the specified width of the IWindow. |
X |
Gets the specified X coordinate of the IWindow. |
Y |
Gets the specified Y coordinate of the IWindow. |
Methods
Activated() |
Occurs when the Window is activated. |
AddOverlay(IWindowOverlay) |
Adds a Window Overlay to the current Window. |
BackButtonClicked() |
Occurs when the back button is pressed. |
Backgrounding(IPersistedState) |
Occurs when the Window is entering a background state. |
Created() |
Occurs when the Window is created. |
Deactivated() |
Occurs when the Window is deactivated. |
Destroying() |
Occurs when the Window is destroyed. |
DisplayDensityChanged(Single) | |
FrameChanged(Rect) | |
RemoveOverlay(IWindowOverlay) |
Removes a Window Overlay to the current Window. |
RequestDisplayDensity() | |
Resumed() |
Occurs when the Window is resumed from a sleeping state. |
Stopped() |
Occurs when the Window is stopped. |
Extension Methods
ToHandler(IElement, IMauiContext) | |
ToPlatform(IElement, IMauiContext) | |
CaptureAsync(IWindow) |