//public string BaseUrl { get; set; } = "pack://application:,,,/HIO;component/Resources/Battery/Battery"; public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { if (value is BatteryStateEnum) { return(TEnumImageUriAttribute.GetImageUri((BatteryStateEnum)value)); } return(TEnumImageUriAttribute.GetImageUri(BatteryStateEnum.Empty)); }
public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { if (value is SignalEnum) { return(TEnumImageUriAttribute.GetImageUri((SignalEnum)value)); } return(TEnumImageUriAttribute.GetImageUri(SignalEnum.NoConnection)); }