ModernWPF.Converters.ThicknessZeroSideConverter.ConvertBack C# (CSharp) Method

ConvertBack() public method

Not supported.
public ConvertBack ( object value, Type targetType, object parameter, System culture ) : object
value object The value that is produced by the binding target.
targetType System.Type The type to convert to.
parameter object The converter parameter to use.
culture System The culture to use in the converter.
return object
        public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            return DependencyProperty.UnsetValue;
        }

Usage Example

        public void ConvertBack_Converts_To_Unset()
        {
            var conv = new ThicknessZeroSideConverter();

            var result = conv.ConvertBack(new Thickness(), typeof(Thickness), null, CultureInfo.CurrentCulture);

            Assert.AreEqual(DependencyProperty.UnsetValue, result, "No longer an unsupported operation?");
        }
ThicknessZeroSideConverter