mirror of
https://github.com/LostArtefacts/TRX.git
synced 2025-04-28 20:58:07 +03:00

This fixes VS messages regarding namespaces, removes some redundant usings and SDK parameters, and adds XAML design data contexts.
12 lines
415 B
C#
12 lines
415 B
C#
using System.Globalization;
|
|
using TRX_ConfigToolLib.Models.Lang;
|
|
|
|
namespace TRX_ConfigToolLib.Utils.Converters;
|
|
|
|
public class ConditionalViewTextConverter : ConditionalMarkupConverter
|
|
{
|
|
public override object Convert(object value, Type targetType, object parameter, CultureInfo culture)
|
|
{
|
|
return Language.Instance.Controls[base.Convert(value, targetType, parameter, culture).ToString()];
|
|
}
|
|
}
|