路由事件的消息包含在RoutedEventArgs实例中,该实例有两个属性Source和OriginalSource,都是表示路由事件传递的起点,即事件消息的源头,只不过Source表示的是LogicalTree上的消息源头,而OriginalSource表示的是VisualTree上的源头。
主要代码如下:
public MainWindow()
{
InitializeComp...
分类:
其他好文 时间:
2014-08-16 11:11:50
阅读次数:
246
private void btnDel_Click(object sender, RoutedEventArgs e) { if (DGUser.SelectedItem != null) { DataRowVi...
分类:
其他好文 时间:
2014-08-11 11:49:02
阅读次数:
419
一、Silverlight xaml.cs文件1、//下载图表 private void btnDown_Click(object sender, RoutedEventArgs e) {DBServiceClient svc = new DBServiceClient(); svc.ShowPre...
分类:
Web程序 时间:
2014-07-24 21:32:22
阅读次数:
377
一、Silverlight xaml.cs文件按钮触发方法1、//下载图表 private void btnDown_Click(object sender, RoutedEventArgs e) { DBServiceClient svc = new DBServiceClient(); s...
分类:
Web程序 时间:
2014-07-23 15:18:06
阅读次数:
280
//Exportprivate void btnExport_Click(object sender, RoutedEventArgs e){string strDataTime = System.DateTime.Now.ToString("yyyyMMdd_HHmmss");string str...
分类:
Web程序 时间:
2014-07-17 23:30:00
阅读次数:
291
//浏览Excel文件 private void btnScan_Click(object sender, RoutedEventArgs e) { OpenFileDialog ofd = new OpenFileDialog(); ...
分类:
Web程序 时间:
2014-07-17 22:34:09
阅读次数:
283
引用using Shell32; private void Open_Click(object sender, RoutedEventArgs e) { OpenFileDialog ofd = new OpenFileDialog(); ...
分类:
其他好文 时间:
2014-07-16 16:13:10
阅读次数:
210
private void Button_Click(object sender, RoutedEventArgs e) { Popup1.PlacementTarget = TesTextBox; Popup1.Placeme...
分类:
其他好文 时间:
2014-07-16 12:06:26
阅读次数:
195
1、返回事件 (1、返回silverlight页面,2、返回web页面) private void button_ClickBack(object sender, RoutedEventArgs e) { 1、返回silverlight页面: this.Content = new BeginC...
分类:
Web程序 时间:
2014-07-02 17:53:43
阅读次数:
292
private void button1_Click(object sender, RoutedEventArgs e) { int[] copy1 = { 1, 2, 3, 4 }; int[] copy2 = { 5, 6, 7, 8 }; ...
分类:
其他好文 时间:
2014-06-27 16:26:15
阅读次数:
170