-
zhuatubiaoyuandaima
用来抓图的一个源代码,帮助你学习一下windows方便的东西(to a source code, and help you learn about things convenient windows)
- 2007-04-08 09:38:29下载
- 积分:1
-
wpf滑动效果 实例源码
鼠标拖动时 控件滑动 截图: 核心代码:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Windows;using System.Windows.Controls;using System.Windows.Data;using System.Windows.Documents;using System.Windows.Input;using System.Windows.Media;using System.Windows.Media.Imaging;using System.Windows.Navigation;using System.Windows.Shapes;using System.Windows.Media.Animation;namespace FlashPrac2{ /// /// MainWindow.xaml 的交互逻辑 /// public partial class MainWindow : Window { public MainWindow() { InitializeComponent(); } /// /// 完成缓冲效果 /// /// 起始位置 /// 目标位置 /// 加速加速度 /// 减速加速度 /// 持续时间 private void DoMove(DependencyProperty dp, double to, double ar, double dr, double duration) { DoubleAnimation doubleAnimation = new DoubleAnimation();//创建双精度动画对象 doubleAnimation.To = to;//设置动画的结束值 doubleAnimation.Duration = TimeSpan.FromSeconds(duration);//设置动画时间线长度 doubleAnimation.AccelerationRatio = ar;//动画加速 doubleAnimation.DecelerationRatio = dr;//动画减速 doubleAnimation.FillBehavior = FillBehavior.HoldEnd;//设置动画完成后执行的操作 grdTransfer.BeginAnimation(dp, doubleAnimation);//设置动画应用的属性并启动动画 } private double pressedX; /// /// 点击鼠标,记录鼠标单击的位置 /// /// /// private void grdTest_PreviewMouseLeftButtonDown(object sender, MouseButtonEventArgs e) { ////获得鼠标点击的X坐标 pressedX = e.GetPosition(cvsGround).X; } ////鼠标释放时的操作 private void grdTest_PreviewMouseLeftButtonUp(object sender, MouseButtonEventArgs e) { double transferLeft = Convert.ToDouble(grdTransfer.GetValue(Canvas.LeftProperty)); //btn1.Content = transferLeft.ToString(); if (transferLeft > 0) { transferLeft = 0; } if (this.Width - transferLeft > cvsGround.Width) { transferLeft = this.Width - cvsGround.Width; } ////获得鼠标释放时的位置 double releasedX = e.GetPosition(cvsGround).X; ////获得距离间隔 double interval = releasedX - pressedX; pressedX = 0; ////计算出传送带要的目标位置 double to = transferLeft interval; ////移动 //btn1.Content = transferLeft.ToString() " " to.ToString(); // btn1.Content = transferLeft.ToString() " " to.ToString(); DoMove(Canvas.LeftProperty, to, 0.1, 0.5, 0.5); } }}
- 2014-06-24下载
- 积分:1
-
本人发现的很好的书籍
本人发现的很好的书籍-A good book I found
- 2022-03-06 03:54:10下载
- 积分:1
-
240096_RotatorInUserControl
Rotation control used on many applications - very good
- 2014-10-07 11:16:45下载
- 积分:1
-
放大器
说明: 放大器,用于信号放大,信号调理电路。高性能,低功耗。不错的选择。值得信赖啊(Amplifier, used for signal amplification, signal conditioning circuit.High performance, low power consumption.Good choice.trustworthy)
- 2020-06-24 23:31:07下载
- 积分:1
-
EJERCICIO2
SSD5 Exercise 2 complete and functional
- 2009-10-17 23:35:36下载
- 积分:1
-
ATT7022B-STC12C5A60S2
AT702三相电采集芯片,采用STC12C5A60S2控制,能准确测量出三相电的有功功率无功功率,电压电流等所有电参数。(AT702 three-phase power acquisition chip, using STC12C5A60S2 control, can accurately measure the three-phase power active power, reactive power, voltage and current and all other electrical parameters.)
- 2020-11-17 00:09:40下载
- 积分:1
-
孵化环境温湿度监控系统设计
说明: 孵化环境温湿度监控系统设计!!!!!!!(Design of temperature and humidity monitoring system for incubation environment)
- 2020-01-10 09:54:36下载
- 积分:1
-
PolyFit
PoleyFitqw曲3线3拟w合类q库
PolewyFitqw曲w线拟w合t类库
PoelywFitq曲w线拟t合类t库
PoelyFtitq曲er线rw合类t库
PolywrFitq曲q线拟wt合t类库(Pwoly33FiwtPoleetPwolyFit555PolywFit)
- 2020-06-25 11:00:01下载
- 积分:1
-
excell批量翻译
可实现excell表自动翻译,省去了人工翻译的麻烦,如nessus下载的报告都是英文的,可用该代码实现批量化翻译,大大的减少了工作量,希望此次上传可以对大家有所帮助,谢谢!
- 2022-02-15 21:46:33下载
- 积分:1