Skip to main content

Win32PlatformOptions Class

Platform-specific options which apply to Windows.

Definition

Namespace: Avalonia
Assembly: Avalonia.Win32 (in Avalonia.Win32.dll)

public class Win32PlatformOptions
View Source
InheritanceObject → Win32PlatformOptions

Constructors

Win32PlatformOptions()Initializes a new instance of the Win32PlatformOptions class

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.

Methods

Equals(Object)Determines whether the specified object is equal to the current object.
(Inherited from Object)
Finalize()Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCode()Serves as the default hash function.
(Inherited from Object)
GetType()Gets the Type of the current instance.
(Inherited from Object)
MemberwiseClone()Creates a shallow copy of the current Object.
(Inherited from Object)
ToString()Returns a string that represents the current object.
(Inherited from Object)

See Also

Reference

Avalonia Namespace