Skip to main content

CompositionMode Property

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.

Definition

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

public IReadOnlyList<Win32CompositionMode> CompositionMode { get; set; }

Property Value

IReadOnlyList(Win32CompositionMode)

Remarks

If application should work on as wide range of devices as possible, at least add RedirectionSurface as a fallback value.

Exceptions

InvalidOperationExceptionThrown if no values were matched.

See Also

Reference

Win32PlatformOptions Class
Avalonia Namespace