remove 'create_dp' overload that was being called inadvertantly bc compiler interpretted assignment lambda to be a Func instead of Action

This commit is contained in:
John Colvin committed 2019-09-13 18:57:14 -05:00
1 parent 4594282f2a
commit daceee2af9
1 file changed
-3
@@ -34,9 +34,6 @@ namespace mbts.ui {
public static DependencyProperty create_dp<TValue, TOwner>(string name, FrameworkPropertyMetadataOptions options, Action<TOwner, TValue> callback, TValue default_value = default) =>
DependencyProperty.Register(name, typeof(TValue), typeof(TOwner), new FrameworkPropertyMetadata(default_value, options, prop_changed_callback(callback)));
public static DependencyProperty create_dp<TValue, TOwner>(string name, FrameworkPropertyMetadataOptions options, Func<TOwner, TValue, TValue> coerce_value, TValue default_value = default) =>
DependencyProperty.Register(name, typeof(TValue), typeof(TOwner), new FrameworkPropertyMetadata(default_value, options, null, coerce_value_callback(coerce_value)));
public static DependencyProperty create_dp<TValue, TOwner>(string name, FrameworkPropertyMetadataOptions options, Action<TOwner, TValue> callback, Func<TOwner, TValue, TValue> coerce_value, TValue default_value = default) =>
DependencyProperty.Register(name, typeof(TValue), typeof(TOwner), new FrameworkPropertyMetadata(default_value, options, callback == null ? null : prop_changed_callback(callback), coerce_value == null ? null : coerce_value_callback(coerce_value)));