19 lines
485 B
C#
19 lines
485 B
C#
using System;
|
|
using System.Linq;
|
|
using System.Windows.Data;
|
|
|
|
namespace WPFluent.Converters;
|
|
|
|
public class ActualColorConverter : IValueConverter
|
|
{
|
|
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
|
|
{
|
|
var color = (Color)value;
|
|
color.ScA = 1;
|
|
return color;
|
|
}
|
|
|
|
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
|
|
{ throw new NotImplementedException(); }
|
|
}
|