public override object ProvideValue(IServiceProvider rpServiceProvider)
{
if (DesignerProperties.GetIsInDesignMode(r_DesignModeDetector))
return DependencyProperty.UnsetValue;
var rBinding = new Binding(r_Path) { Source = Preference.Instance, Mode = BindingMode.TwoWay, Converter = Converter, ConverterParameter = ConverterParameter, UpdateSourceTrigger = UpdateSourceTrigger, StringFormat = StringFormat };
if (ValidationRule != null)
rBinding.ValidationRules.Add(ValidationRule);
return rBinding.ProvideValue(rpServiceProvider);
}
}