BeginControl.xaml.cs
上传用户:lvyingde
上传日期:2018-04-24
资源大小:610k
文件大小:2k
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Net;
- using System.Windows;
- using System.Windows.Controls;
- using System.Windows.Documents;
- using System.Windows.Input;
- using System.Windows.Media;
- using System.Windows.Media.Animation;
- using System.Windows.Shapes;
- namespace wxwinter.WFDesignerSl
- {
- public partial class BeginControl : ActivityControl
- {
- public BeginControl()
- {
- InitializeComponent();
- }
- private void thumb_DragDelta(object sender, System.Windows.Controls.Primitives.DragDeltaEventArgs e)
- {
-
-
- Canvas.SetLeft(this, Canvas.GetLeft(this) + e.HorizontalChange);
- Canvas.SetTop(this, Canvas.GetTop(this) + e.VerticalChange);
- On刷新事件();
- }
- private void link_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
- {
- string v="";
- if (sender is TextBlock)
- {
- TextBlock ui = sender as TextBlock;
- v = this.Name + "," + ui.Text;
-
-
- }
- if (sender is Image)
- {
- Image ui = sender as Image;
- v = this.Name + "," + this.Name;
-
- }
- myContext.mouseMove = true;
- myContext.sourceName = v;
- }
- private void link_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
- {
- myContext.mouseMove = false;
- myContext.sourceName = "";
- }
- }
- }