Files
better-genshin-impact/Build/MicaSetup/Design/Converters/BoolToFontWeightConverter.cs

15 lines
363 B
C#

using System.Windows;
using System.Windows.Data;
namespace MicaSetup.Design.Converters;
[ValueConversion(typeof(bool), typeof(FontWeight))]
public class BoolToFontWeightConverter : BoolToValueConverter<FontWeight>
{
public BoolToFontWeightConverter()
{
this.TrueValue = FontWeights.Bold;
this.FalseValue = FontWeights.Normal;
}
}