上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 23 下一页
摘要: Support the minimum Windows effective resolution of 800x600 pixels. For critical user interfaces (UIs) that must work in safe mode, support an effective resolution of 640x480 pixels. Be sure to account for the space used by the taskbar by reserving 48 vertical relative pixels for windows displayed . 阅读全文
posted @ 2013-02-27 14:25 xiaokang088 阅读(261) 评论(0) 推荐(0) 编辑
摘要: 1. Screen resolution: 800*600 , 96DPI (100%)Work Area Size as follow:800*560 (subtract bottom/top taskbar height)686*600 (subtract left/Right taskbar height)2.Screen resolution: 1024*768, 120DPI (125%)Get Work Area Size from System.Windows.Forms.Screen.PrimaryScreen.Bounds.Size :1024*720(subtract bo 阅读全文
posted @ 2013-02-26 15:08 xiaokang088 阅读(935) 评论(0) 推荐(0) 编辑
摘要: 方式一:不启动IE,代码中Post try { string url = "http:\\xxx.com" ; string postString = "uid=xx&pwd=xxx"; byte[] postData = Encoding.UTF8.GetBytes(postString); HttpWebRequest request = (HttpWebRequest)WebRequest.Create(n... 阅读全文
posted @ 2013-02-22 13:47 xiaokang088 阅读(4804) 评论(0) 推荐(1) 编辑
摘要: If you use textblock in DataTemplate, such as follow: <ListBox x:Name="manageJobsListBox" Grid.Column="1" ItemsSource="{Binding ManageJobsListCollection}" Background="Yellow"> <ListBox.ItemTemplate> <DataTemplate> <Grid> <StackPanel 阅读全文
posted @ 2013-02-06 10:53 xiaokang088 阅读(347) 评论(0) 推荐(0) 编辑
摘要: 1. DPI测试正常的DPI 100%,最高的一般是 DPI 200%,如果最高的和正常的都没问题,基本可以通过。一般情况下,高DPI容易导致文本或者控件被裁减。最新的屏幕,分辨率很大,DPI也高,就需要加强这方面的测试。2.横屏/竖屏平板电脑上的软件,横向和竖向可以随意设置的,对UI显示位置比较在意的,要多看看。比如说,屏幕左下方的提示。3. 休眠、睡眠很多商务场合,不关闭电脑是常事,如果软件正在运行,休眠了,唤醒后能否继续正常使用。涉及驱动的软件尤其要注意。|睡眠时,数据全部保存在内存中,不断电的情况下唤醒可以继续工作。休眠时,内存的数据全部保存在硬盘中,断电后,再插上电,唤醒可以继续工作 阅读全文
posted @ 2013-01-11 10:37 xiaokang088 阅读(603) 评论(0) 推荐(0) 编辑
摘要: //使用dynamic的写法dynamic fileExplorerData = _currentFolder.FileExplorerData;var data = fileExplorerData.InsertFromPath(newPath);//使用反射的写法MethodInfo InsertMethod = _currentFolder.FileExplorerData.GetType().GetMethod("InsertFromPath");var fileExplorerData = InsertMethod.Invoke(_currentFolder.Fi 阅读全文
posted @ 2013-01-07 09:37 xiaokang088 阅读(504) 评论(1) 推荐(0) 编辑
摘要: Code Rule NoteMicrofost.DesignCA1001:具有可释放字段的类型应该是可释放的using System;using System.IO;namespace DesignLibrary{ // This class violates the rule. public class NoDisposeMethod { FileStream newFile; public NoDisposeMethod() { newFile = new FileStream(@"c:\temp.txt", FileMode.Open); } } // This cl 阅读全文
posted @ 2012-12-21 09:40 xiaokang088 阅读(1181) 评论(0) 推荐(0) 编辑
摘要: Custom Controls and UI Automationhttp://blogs.msdn.com/b/patrickdanino/archive/2009/11/11/custom-controls-and-ui-automation.aspxUI Automation of a WPF Custom Controlhttp://msdn.microsoft.com/en-us/library/cc165614.aspx 阅读全文
posted @ 2012-12-17 18:31 xiaokang088 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 如何本地化 Windows Phone 应用程序标题http://msdn.microsoft.com/zh-cn/library/ff967550(v=VS.92).aspx如何构建 Windows Phone 本地化应用程序http://msdn.microsoft.com/zh-cn/library/ff637520(v=vs.92).aspx 阅读全文
posted @ 2012-12-16 15:05 xiaokang088 阅读(103) 评论(0) 推荐(0) 编辑
摘要: 最近遇到一个奇怪的问题,COM接口ITest1,C#调用时,如果把它转为Object,然后再转为ITest1,就无法访问了,判断为空。如果都是在主线程访问,OK,如果用新的线程访问就不行了。幸好有另外一个接口ITest2,可以正常使用。仔细比较之后,发现ITest1 比ITest2的声明少了【dual】,加上以后,一切OK了。[ object, uuid(1EF52FDB-1959-481A-A417-B238E49F332B), dual, nonextensible, helpstring("INBEngine Interface"), pointer_default( 阅读全文
posted @ 2012-11-20 08:55 xiaokang088 阅读(235) 评论(0) 推荐(0) 编辑
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 23 下一页