Win32PlatformOptions Class
Platform-specific options which apply to Windows.
Definition
Namespace: Avalonia
Assembly: Avalonia.Win32 (in Avalonia.Win32.dll)
- C#
- VB
- F#
public class Win32PlatformOptions
Public Class Win32PlatformOptions
type Win32PlatformOptions = class end
Inheritance | Object → Win32PlatformOptions |
Constructors
Win32PlatformOptions() | Initializes a new instance of the Win32PlatformOptions class |
Properties
CompositionMode | Gets or sets Avalonia composition modes with fallbacks. The first element in the array has the highest priority. The default value is: WinUIComposition, DirectComposition, RedirectionSurface. |
CustomPlatformGraphics | Provides 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. |
DpiAwareness | Gets or sets the application's DPI awareness. |
GraphicsAdapterSelectionCallback | Specifies 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 |
OverlayPopups | Embeds popups to the window when set to true. The default value is false. |
RenderingMode | Gets or sets Avalonia rendering modes with fallbacks. The first element in the array has the highest priority. The default value is: AngleEgl, Software. |
ShouldRenderOnUIThread | Render 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. |
WglProfiles | Windows OpenGL profiles used when RenderingMode is set to Wgl. This setting is 4.0 and 3.2 by default. |
WinUICompositionBackdropCornerRadius | When 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) |