2014年6月5日

摘要: var speed=40;var FGDemo=document.getElementById('demo');var FGDemo1=document.getElementById('demo1');var FGDemo2=document.getElementById('demo2');FGDe... 阅读全文
posted @ 2014-06-05 21:13 曱甴仔 阅读(690) 评论(0) 推荐(0)

2011年10月9日

摘要: 修改App类的App构造函数public partial class App : Application { public App() { this.DispatcherUnhandledException += new DispatcherUnhandledExceptionEventHandler(Application_DispatcherUnhandledException); AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledE 阅读全文
posted @ 2011-10-09 16:11 曱甴仔 阅读(655) 评论(0) 推荐(0)

2011年8月24日

摘要: WPF使用System.Windows.SystemParameters类获得屏幕分辨率2010-11-15 18:04示例代码如下所示。double x = SystemParameters.WorkArea.Width;//得到屏幕工作区域宽度double y = SystemParameters.WorkArea.Height;//得到屏幕工作区域高度double x1= SystemParameters.PrimaryScreenWidth;//得到屏幕整体宽度double y1 = SystemParameters.PrimaryScreenHeight;//得到屏幕整体高度thi. 阅读全文
posted @ 2011-08-24 11:33 曱甴仔 阅读(397) 评论(0) 推荐(0)

2011年8月18日

摘要: public MainWindow() { InitializeComponent(); Thread thread = new Thread(CrossThreadFlush); thread.IsBackground = true; thread.Start(); } private void CrossThreadFlush() { //将sleep和无限循环放在等待异步的外面 Thread.Sleep(2000); Dispatcher.BeginInvoke(DispatcherPriority.Normal, new Action(ThreadFunction)); } priv. 阅读全文
posted @ 2011-08-18 10:41 曱甴仔 阅读(119) 评论(0) 推荐(0)

2011年8月9日

摘要: 1.Avd指定的SDK的版本号2.新建项目时指定的SDK的版本号3.项目运行时指定AVD 阅读全文
posted @ 2011-08-09 11:01 曱甴仔 阅读(336) 评论(0) 推荐(0)

2011年8月4日

摘要: http://www.fluorinefx.com/ 阅读全文
posted @ 2011-08-04 15:49 曱甴仔 阅读(250) 评论(0) 推荐(0)

2011年8月3日

摘要: this.WindowState = System.Windows.WindowState.Maximized; double x1 = SystemParameters.PrimaryScreenWidth;//得到屏幕整体宽度 double y1 = SystemParameters.PrimaryScreenHeight;//得到屏幕整体高度 this.Width = x1;//设置窗体宽度 this.Height = y;//设置窗体高度 阅读全文
posted @ 2011-08-03 10:35 曱甴仔 阅读(322) 评论(0) 推荐(0)

2011年5月12日

摘要: using System.Windows.Controls; private void btn_Click(object sender, RoutedEventArgs e) { Button b = (Button)sender; Text_Input = b.Name.Substring(4,1); } 阅读全文
posted @ 2011-05-12 16:55 曱甴仔 阅读(121) 评论(0) 推荐(0)