feat: add more templates.

This commit is contained in:
rabbitism
2024-02-13 16:09:53 +08:00
parent cff3cdbf98
commit e227788a95
5 changed files with 226 additions and 44 deletions

View File

@@ -0,0 +1,17 @@
using System.Globalization;
using Avalonia;
using Avalonia.Data.Converters;
namespace Ursa.Themes.Semi.Converters;
public class NavMenuMarginConverter: IMultiValueConverter
{
public object? Convert(IList<object?> values, Type targetType, object? parameter, CultureInfo culture)
{
if (values[0] is double indent && values[1] is int level)
{
return new Thickness(indent * level, 0, 0, 0);
}
return AvaloniaProperty.UnsetValue;
}
}