4 using System.Globalization;
6 namespace SiliconStudio.Presentation.ValueConverters
14 public override object Convert(
object value, Type targetType,
object parameter, CultureInfo culture)
16 bool result = System.Convert.ToBoolean(value);
21 public override object ConvertBack(
object value, Type targetType,
object parameter, CultureInfo culture)
23 return Convert(value, targetType, parameter, culture);
override object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
HRESULT Convert(_In_ const Image &srcImage, _In_ DXGI_FORMAT format, _In_ DWORD filter, _In_ float threshold, _Out_ ScratchImage &image)
This converter will invert a boolean value. ConvertBack is supported and does basically the same oper...
override object Convert(object value, Type targetType, object parameter, CultureInfo culture)