feat: add loading.

This commit is contained in:
rabbitism
2023-06-23 22:24:43 +08:00
parent 0a14fc2dbe
commit 009498f590
8 changed files with 181 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
using System.Globalization;
using Avalonia.Data.Converters;
using Avalonia.Media;
namespace Ursa.Themes.Semi.Converters;
public class BrushToColorConverter: IValueConverter
{
public object? Convert(object? value, Type targetType, object? parameter, CultureInfo culture)
{
if (value is ISolidColorBrush b)
{
return b.Color;
}
return null;
}
public object? ConvertBack(object? value, Type targetType, object? parameter, CultureInfo culture)
{
throw new NotImplementedException();
}
}