Files
aistudio-wpf-diagram/Others/Live-Charts-master/Examples/UWP/CartesianChart/Energy Predictions/OpacityConverter.cs
2023-04-16 20:11:40 +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();
}
}
}