Add Windows desktop version

This commit is contained in:
renato97
2025-12-17 19:20:55 +00:00
parent 93dbe0941e
commit 8921d7f2a6
36 changed files with 2760 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
using System;
using Avalonia.Data.Converters;
namespace StreamPlayer.Desktop.Converters;
public sealed class InverseBooleanConverter : IValueConverter
{
public static readonly InverseBooleanConverter Instance = new();
public object? Convert(object? value, Type targetType, object? parameter, System.Globalization.CultureInfo culture)
{
if (value is bool boolean)
{
return !boolean;
}
return Avalonia.AvaloniaProperty.UnsetValue;
}
public object? ConvertBack(object? value, Type targetType, object? parameter, System.Globalization.CultureInfo culture)
{
if (value is bool boolean)
{
return !boolean;
}
return Avalonia.AvaloniaProperty.UnsetValue;
}
}