1#if !XAMARIN && !WINDOWS_UWP
11using System.Windows.Resources;
12using System.Windows.Media.Imaging;
14using System.Windows.Data;
33 public object Convert(
object value, Type targetType,
object parameter, System.Globalization.CultureInfo culture)
36 string uri =
string.Format(
"/Csla.Xaml;component/Resources/{0}.png", severity);
37 StreamResourceInfo sr = Application.GetResourceStream(
new Uri(uri, UriKind.Relative));
38 BitmapImage bmp =
new BitmapImage();
40 bmp.StreamSource = sr.Stream;
53 public object ConvertBack(
object value, Type targetType,
object parameter, System.Globalization.CultureInfo culture)
Converts validation severity values into corresponding images.
object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
Converts validation severity values into corresponding images.
object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
Returns the original value.
RuleSeverity
Values for validation rule severities.