Skip to main content

Win32PlatformOptions Properties

Properties

CompositionModeGets or sets Avalonia composition modes with fallbacks. The first element in the array has the highest priority. The default value is: WinUIComposition, DirectComposition, RedirectionSurface.
CustomPlatformGraphicsProvides a way to use a custom-implemented graphics context such as a custom ISkiaGpu. When this property set RenderingMode is ignored and CompositionMode only accepts null or RedirectionSurface.
DpiAwarenessGets or sets the application's DPI awareness.
GraphicsAdapterSelectionCallbackSpecifies a callback method to be called when compositor needs to create a platform graphics device Currently is only called for AngleEgl rendering mode when DirectX 11 is used
OverlayPopupsEmbeds popups to the window when set to true. The default value is false.
RenderingModeGets or sets Avalonia rendering modes with fallbacks. The first element in the array has the highest priority. The default value is: AngleEgl, Software.
ShouldRenderOnUIThreadRender directly on the UI thread instead of using a dedicated render thread. Only applicable if CompositionMode is set to RedirectionSurface. This setting is only recommended for interop with systems that must render on the UI thread, such as WPF. This setting is false by default.
WglProfilesWindows OpenGL profiles used when RenderingMode is set to Wgl. This setting is 4.0 and 3.2 by default.
WinUICompositionBackdropCornerRadiusWhen CompositionMode is set to WinUIComposition, create rounded corner blur brushes If set to null the brushes will be created using default settings (sharp corners) This can be useful when you need a rounded-corner blurred Windows 10 app, or borderless Windows 11 app.

See Also

Reference

Win32PlatformOptions Class
Avalonia Namespace