示例#1
0
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            if (value is ObservableDictionary <EnumChartConfiguration, object> dictionary)
            {
                EnumChartConfiguration param = (EnumChartConfiguration)int.Parse((string)parameter);

                return(dictionary.ContainsKey(param) && dictionary[param] != null ? Visibility.Visible : Visibility.Collapsed);
            }

            return(Visibility.Visible);
        }
示例#2
0
 public virtual void OnConfigurationOptionChanged(EnumChartConfiguration key, object value)
 {
 }