void PrepareBehavior(string propName, string methodName, object target = null, object source = null, bool attachToView = true) {
     Behavior = new FunctionBindingBehavior();
     Behavior.Property = propName;
     Behavior.Target = target;
     Behavior.Function = methodName;
     Behavior.Source = source;
     if(attachToView)
         Interaction.GetBehaviors(View).Add(Behavior);
 }
 void PrepareBehavior(string propName, string methodName, object target = null, object source = null, bool attachToView = true)
 {
     Behavior          = new FunctionBindingBehavior();
     Behavior.Property = propName;
     Behavior.Target   = target;
     Behavior.Function = methodName;
     Behavior.Source   = source;
     if (attachToView)
     {
         Interaction.GetBehaviors(View).Add(Behavior);
     }
 }
 protected override void TearDownCore()
 {
     Behavior = null;
     View     = null;
     base.TearDownCore();
 }
 protected override void TearDownCore() {
     Behavior = null;
     View = null;
     base.TearDownCore();
 }