A cross-platform UI framework for .NET
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

20 lines
559 B

using System;
using System.ComponentModel;
using System.Globalization;
using Avalonia.Media;
namespace TextTestApp
{
public class FontFeatureCollectionConverter : TypeConverter
{
public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType)
{
return sourceType == typeof(string);
}
public override object? ConvertFrom(ITypeDescriptorContext? context, CultureInfo? culture, object value)
{
return FontFeatureCollection.Parse((string)value);
}
}
}