摘要: private void dataGrid_MouseRightButtonDown(object sender, MouseButtonEventArgs e) { ContextMenu context = new ContextMenu(); ... 阅读全文
posted @ 2014-07-16 14:21 iEvent 阅读(1664) 评论(0) 推荐(0) 编辑
摘要: 引用using Shell32; private void Open_Click(object sender, RoutedEventArgs e) { OpenFileDialog ofd = new OpenFileDialog(); ... 阅读全文
posted @ 2014-07-16 14:16 iEvent 阅读(717) 评论(0) 推荐(0) 编辑
摘要: private void Button_Click(object sender, RoutedEventArgs e) { Popup1.PlacementTarget = TesTextBox; Popup1.Placeme... 阅读全文
posted @ 2014-07-16 10:21 iEvent 阅读(1803) 评论(0) 推荐(0) 编辑
摘要: style文件xmal: ... 阅读全文
posted @ 2014-06-18 16:52 iEvent 阅读(358) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Text;using System.Windows;using System.Windows.Controls;using System.Windows.Data;using Sys... 阅读全文
posted @ 2014-05-26 13:12 iEvent 阅读(403) 评论(0) 推荐(0) 编辑
摘要: DES.csusing System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Security.Cryptography;namespace Wpfbinding{ ... 阅读全文
posted @ 2014-04-22 17:42 iEvent 阅读(511) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Text;using System.Globalization;using System.Security.Cryptography;using System.IO;namespac... 阅读全文
posted @ 2014-04-22 09:56 iEvent 阅读(232) 评论(0) 推荐(0) 编辑
摘要: 不拘一格用数据的Converter上篇文已经说明,Binding就是数据源与目标之间的“关联”。大多数情况下,数据从Source到Target以及从Target返回Source都是“直来直去”的,但有些场景却需要我们对数据做些转换才能为我所用。举两个典型的例子:如果数据源里的值是Y和N,如果是Y,那... 阅读全文
posted @ 2014-04-21 16:30 iEvent 阅读(2110) 评论(0) 推荐(1) 编辑
摘要: 站在一个WinForm程序员的角度去考虑,他会做这样几件事情:响应slider1的ValueChanged事件,在事件处理函数中让textBox1显示slider1的Value响应textBox1的LostFocus事件,把textBox1的Text转换成数值,并赋值给slider1注意了!这就是典... 阅读全文
posted @ 2014-04-21 15:05 iEvent 阅读(1445) 评论(0) 推荐(1) 编辑
摘要: Microsoft Expression Design 4导入做好的login.Png图片调整美工板大小导出,右边格式为XAML WPF 资源字典,实时效果为XAML效果文件名login.xaml和位置Microsoft Visual Studio 2010项目添加现有项Design4导出的logi... 阅读全文
posted @ 2014-04-18 10:56 iEvent 阅读(246) 评论(0) 推荐(0) 编辑