Ejemplo n.º 1
0
        public object ConvertBack(object value, Type targetType, object parameter, string language)
        {
            object           result;
            FrameworkElement frameworkElement = (FrameworkElement)parameter;
            EntityProperty   entityProperty   = (EntityProperty)frameworkElement.DataContext;

            if (entityProperty != null)
            {
                result = entityProperty.GetConvertBackValue(value);
            }
            else
            {
                result = value;
            }

            return(result);
        }