Ejemplo n.º 1
0
 internal void OnEdgeMouseLeave(EdgeControl edgeControl)
 {
     if (EdgeMouseLeave != null)
     {
         EdgeMouseLeave(this, new EdgeSelectedEventArgs(edgeControl));
     }
     if (MouseOverAnimation != null)
     {
         MouseOverAnimation.AnimateEdgeBackward(edgeControl);
     }
 }
Ejemplo n.º 2
0
 public static IBidirectionalControlAnimation CreateMouseOverAnimation(MouseOverAnimation type, double duration = .3)
 {
     switch (type)
     {
         case MouseOverAnimation.None:
             return null;
         case MouseOverAnimation.Scale:
             return new MouseOverScaleAnimation(duration);
     }
     return null;
 }
Ejemplo n.º 3
0
 internal void OnEdgeMouseEnter(EdgeControl edgeControl)
 {
     if (EdgeMouseEnter != null)
     {
         EdgeMouseEnter(this, new EdgeSelectedEventArgs(edgeControl));
     }
     if (MouseOverAnimation != null)
     {
         MouseOverAnimation.AnimateEdgeForward(edgeControl);
     }
 }
Ejemplo n.º 4
0
 internal virtual void OnVertexMouseLeave(VertexControl vc)
 {
     if (VertexMouseLeave != null)
     {
         VertexMouseLeave(this, new VertexSelectedEventArgs(vc, null, Keyboard.Modifiers));
     }
     if (MouseOverAnimation != null)
     {
         MouseOverAnimation.AnimateVertexBackward(vc);
     }
 }
Ejemplo n.º 5
0
 internal virtual void OnVertexMouseEnter(VertexControl vc)
 {
     if (VertexMouseEnter != null)
     {
         VertexMouseEnter(this, new VertexSelectedEventArgs(vc, null));
     }
     if (MouseOverAnimation != null)
     {
         MouseOverAnimation.AnimateVertexForward(vc);
     }
 }
Ejemplo n.º 6
0
 internal void OnEdgeMouseLeave(EdgeControl edgeControl, MouseButtonEventArgs e, ModifierKeys keys)
 {
     if (EdgeMouseLeave != null)
     {
         EdgeMouseLeave(this, new EdgeSelectedEventArgs(edgeControl, e, keys));
     }
     if (MouseOverAnimation != null)
     {
         MouseOverAnimation.AnimateEdgeBackward(edgeControl);
     }
 }
Ejemplo n.º 7
0
        public static IBidirectionalControlAnimation CreateMouseOverAnimation(MouseOverAnimation type, double duration = .3)
        {
            switch (type)
            {
            case MouseOverAnimation.None:
                return(null);

            case MouseOverAnimation.Scale:
                return(new MouseOverScaleAnimation(duration));
            }
            return(null);
        }