ITopLevelImpl Interface

Defines a platform-specific top-level window implementation.

Definition

Namespace: Avalonia.Platform
Assembly: Avalonia.Controls (in Avalonia.Controls.dll) Version: 11.3.999
[UnstableAttribute]
public interface ITopLevelImpl : IOptionalFeatureProvider, 
	IDisposable
Implements
IOptionalFeatureProvider, IDisposable

Remarks

This interface is the common interface to IWindowImpl and IPopupImpl.

Properties

AcrylicCompensationLevels Gets the AcrylicPlatformCompensationLevels for the platform.
ClientSize Gets the client size of the toplevel.
Closed Gets or sets a method called when the underlying implementation is destroyed.
Compositor Gets the compositor that's compatible with the toplevel
DesktopScaling Gets the scaling factor for Window positioning and sizing.
Handle Get the platform handle.
Input Gets or sets a method called when the toplevel receives input.
LostFocus Gets or sets a method called when the input focus is lost.
Paint Gets or sets a method called when the toplevel requires painting.
RenderScaling Gets the scaling factor for the toplevel. This is used for rendering.
Resized Gets or sets a method called when the toplevel is resized.
ScalingChanged Gets or sets a method called when the toplevel's scaling changes.
Surfaces The list of native platform's surfaces that can be consumed by rendering subsystems.
TransparencyLevel Gets the current WindowTransparencyLevel of the TopLevel.
TransparencyLevelChanged Gets or sets a method called when the toplevel's TransparencyLevel changes.

Methods

CreatePopup 
DisposePerforms application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from IDisposable)
PointToClient(PixelPoint) Converts a point from screen to client coordinates.
PointToScreen(Point) Converts a point from client to screen coordinates.
SetCursor(ICursorImpl) Sets the cursor associated with the toplevel.
SetFrameThemeVariant(PlatformThemeVariant) Sets the PlatformThemeVariant on the frame if it should be dark or light. Also applies for the mobile status bar.
SetInputRoot(IInputRoot) Sets the IInputRoot for the toplevel.
SetTransparencyLevelHint(IReadOnlyListWindowTransparencyLevel) Sets the WindowTransparencyLevel hint of the TopLevel.
TryGetFeature(Type)
(Inherited from IOptionalFeatureProvider)

See Also