EndControl.xaml.cs
上传用户:lvyingde
上传日期:2018-04-24
资源大小:610k
文件大小:1k
源码类别:

SilverLight

开发平台:

C#

  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Net;
  5. using System.Windows;
  6. using System.Windows.Controls;
  7. using System.Windows.Documents;
  8. using System.Windows.Input;
  9. using System.Windows.Media;
  10. using System.Windows.Media.Animation;
  11. using System.Windows.Shapes;
  12. namespace wxwinter.WFDesignerSl
  13. {
  14.     public partial class EndControl : ActivityControl
  15.     {
  16.         public EndControl()
  17.         {
  18.             InitializeComponent();
  19.         }
  20.         private void thumb_DragDelta(object sender, System.Windows.Controls.Primitives.DragDeltaEventArgs e)
  21.         {
  22.             Canvas.SetLeft(this, Canvas.GetLeft(this) + e.HorizontalChange);
  23.             Canvas.SetTop(this, Canvas.GetTop(this) + e.VerticalChange);
  24.             On刷新事件();
  25.         }
  26.         private void ActivityControl_MouseEnter(object sender, MouseEventArgs e)
  27.         {
  28.             if (myContext.mouseMove)
  29.             {
  30.                 object o = myContext.sourceName;
  31.                 On连接事件(o.ToString());
  32.                 On刷新事件();
  33.                 myContext.mouseMove = false;
  34.                 myContext.sourceName = "";
  35.     
  36.             }
  37.         }
  38.     }
  39. }