Files
Beyhan Oğur d5f52cc3d3 first commit
2026-09-03 04:45:36 +03:00

24 lines
627 B
C#

using System;
using System.Globalization;
using System.Windows.Data;
namespace ClassicAssist.UI.Misc.ValueConverters
{
public class IntToHexStringValueConverter : IValueConverter
{
public object Convert( object value, Type targetType, object parameter, CultureInfo culture )
{
if ( value is int val )
{
return $"0x{val:x8}";
}
return value;
}
public object ConvertBack( object value, Type targetType, object parameter, CultureInfo culture )
{
throw new NotImplementedException();
}
}
}