// converts the raw value into the source value
 // uses converters, else falls back to dark (& performance-wise expensive) magic
 // source: the property raw value
 // preview: whether we are previewing or not
 public object ConvertDataToSource(object source, bool preview)
 {
     // use the converter else use dark (& performance-wise expensive) magic
     return(_converter != null
         ? _converter.ConvertDataToSource(this, source, preview)
         : ConvertUsingDarkMagic(source));
 }
Exemple #2
0
 public override object ConvertDataToSource(PublishedPropertyType propertyType, object source, bool preview)
 {
     return(_baseValueConverter.ConvertDataToSource(propertyType, source, preview));
 }