using System.Collections.Generic; using System.Collections.ObjectModel; namespace Avalonia.Controls; public readonly record struct WindowTransparencyLevel { private readonly string _value; private WindowTransparencyLevel(string value) { _value = value; } /// /// The window background is Black where nothing is drawn in the window. /// public static WindowTransparencyLevel None { get; } = new(nameof(None)); /// /// The window background is Transparent where nothing is drawn in the window. /// public static WindowTransparencyLevel Transparent { get; } = new(nameof(Transparent)); /// /// The window background is a blur-behind where nothing is drawn in the window. /// public static WindowTransparencyLevel Blur { get; } = new(nameof(Blur)); /// /// The window background is a blur-behind with a high blur radius. This level may fallback to Blur. /// public static WindowTransparencyLevel AcrylicBlur { get; } = new(nameof(AcrylicBlur)); /// /// The window background is based on desktop wallpaper tint with a blur. This will only work on Windows 11 /// public static WindowTransparencyLevel Mica { get; } = new(nameof(Mica)); public override string ToString() { return _value; } } public class WindowTransparencyLevelCollection : ReadOnlyCollection { public WindowTransparencyLevelCollection(IList list) : base(list) { } }