05 2011 档案

摘要:添加命名空间:using System.Windows.Forms;using System.Drawing;随后引用一个Dll : C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Drawing.dll现在我们就能直接使用winform的调色板控件了。 ColorDialog colorDialog = new ColorDialog(); colorDialog.AllowFullOpen = true; colorDialog.ShowDialog(); System.Windows.Media.SolidColorBrush s 阅读全文
posted @ 2011-05-30 10:55 .net万剑 阅读(3233) 评论(0) 推荐(2)
摘要:第一种方法:直接在Page或frame加载页面 Click here 第二种方法:调用系统浏览器加载指定页面 Click here privatevoid Hyperlink_RequestNavigate(object sender, RequestNavigateEventArgs e){ Process.Start(new ProcessStartInfo(e.Uri.AbsoluteUri)); e.Handled =true;} 阅读全文
posted @ 2011-05-30 09:26 .net万剑 阅读(4992) 评论(2) 推荐(1)
摘要:1 CheckBox cbSelect = (CheckBox)(ListBoxView.Items[i] as ListBoxItem).Template.FindName("cbSelect", ListBoxView.Items[i] as ListBoxItem);2 TextBlock textblackConnPointNum = (TextBlock)(ListBoxView.Items[i] as ListBoxItem).Template.FindName("textblackConnPointNum", ListBoxView.Ite 阅读全文
posted @ 2011-05-24 12:41 .net万剑 阅读(13275) 评论(0) 推荐(2)
摘要:WPF 和WinForm的MeeageBox不同View Code if(MessageBox.Show("内容", "标题", MessageBoxButton.YesNo, MessageBoxImage.Information) == MessageBoxResult.Yes){} 阅读全文
posted @ 2011-05-10 10:03 .net万剑 阅读(5479) 评论(0) 推荐(1)