Skip to content
Browse files

Add Interface to hook when people call Bind()

  • Loading branch information...
1 parent 193d503 commit ebdf16be1be988f5f843b396d7ea17ce445d3611 @paulcbetts paulcbetts committed
Showing with 14 additions and 1 deletion.
  1. +14 −1 ReactiveUI/Interfaces.cs
View
15 ReactiveUI/Interfaces.cs
@@ -389,6 +389,18 @@ public interface IDefaultPropertyBindingProvider
Tuple<string, int> GetPropertyForControl(object control);
}
+ public enum BindingDirection
+ {
+ OneWay,
+ TwoWay,
+ AsyncOneWay,
+ }
+
+ public interface IPropertyBindingHook
+ {
+ bool ExecuteHook(object source, object target, string sourceProperty, string targetProperty, BindingDirection direction);
+ }
+
public interface IViewFor
{
object ViewModel { get; set; }
@@ -401,7 +413,8 @@ public interface IViewFor<T> : IViewFor
where T : class
{
/// <summary>
- /// The ViewModel corresponding to this specific View.
+ /// The ViewModel corresponding to this specific View. This should be
+ /// a DependencyProperty if you're using XAML.
/// </summary>
T ViewModel { get; set; }
}

0 comments on commit ebdf16b

Please sign in to comment.
Something went wrong with that request. Please try again.