2024-09-22 11:05:41 +08:00
|
|
|
|
using System;
|
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
using System.Windows.Data;
|
|
|
|
|
|
|
2025-02-10 20:53:40 +08:00
|
|
|
|
namespace WPFluent.Converters;
|
|
|
|
|
|
|
2024-09-22 11:05:41 +08:00
|
|
|
|
public class ActualColorConverter : IValueConverter
|
|
|
|
|
|
{
|
|
|
|
|
|
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
|
|
|
|
|
|
{
|
2025-02-10 20:53:40 +08:00
|
|
|
|
var color = (Color)value;
|
2024-09-22 11:05:41 +08:00
|
|
|
|
color.ScA = 1;
|
|
|
|
|
|
return color;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
|
2025-02-10 20:53:40 +08:00
|
|
|
|
{ throw new NotImplementedException(); }
|
2024-09-22 11:05:41 +08:00
|
|
|
|
}
|