Files
aistudio-wpf-diagram/Live-Charts-master/Examples/UWP/CartesianChart/Energy Predictions/OpacityConverter.cs
2021-07-23 09:42:22 +08:00

22 lines
574 B
C#

using System;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Data;
namespace UWP.CartesianChart.Energy_Predictions
{
public class OpacityConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, string language)
{
return (Visibility)value == Visibility.Visible
? 1d
: .2d;
}
public object ConvertBack(object value, Type targetType, object parameter, string language)
{
throw new NotImplementedException();
}
}
}