您的位置:首页 > 大数据 > 人工智能

SAI的拙劣仿制:很多人永远也不会尝试的东西

2010-12-01 11:09 274 查看
MainWindow.xaml

MainWindow.xaml.cs

using System.Windows;
using System.Windows.Input;
using System.Windows.Media;

namespace wpfStylusDemo
{
///
/// MainWindow.xaml 的交互逻辑
///
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
}

const double c_angle = 15;
private void Window_PreviewKeyDown(object sender, KeyEventArgs e)
{
if (Key.End == e.Key || Key.Delete == e.Key)
{
var rt = inkCanvas1.LayoutTransform as RotateTransform;
double angle = rt.Angle;
if (Key.Delete == e.Key)
angle -= c_angle;
else
angle += c_angle;
rt.Angle = angle % 360;
}
}
}
}

奇怪的是这些人却总是在抱怨技术变化得太快。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: