예제 #1
0
        public Binding AddBinding <TOwner>(ActionDependencyProperty <TOwner> vProperty, IClassMethod vmProperty)
            where TOwner : IVisualElement
        {
            var result = new ActionBinding <TOwner>(this, vProperty, vmProperty);

            m_Bindings.Add(result);
            return(result);
        }
예제 #2
0
 public ActionBinding(IVisualElement elt, ActionDependencyProperty <TOwner> vProperty, IClassMethod vmProperty)
 {
     Assert.IsNotNull(elt);
     Assert.IsNotNull(vProperty);
     Assert.IsNotNull(vmProperty);
     m_ViewProperty  = vProperty;
     m_VisualElement = elt;
     vProperty.Hook(elt, vmProperty);
 }
예제 #3
0
 public static int GetHashCodeFor(ActionDependencyProperty <TOwner> vProperty, IClassMethod vmProperty)
 {
     return(vProperty.GetHashCode() ^ vmProperty.GetHashCode());
 }