摘要: UI设计中经常需要作出无边框Window以防止用户做窗口的“最大、最小、关闭”等操作,但此时“alt+空格”菜单依然可做这些操作,可在code-behind中加入以下代码禁用之:View Code private void PrintWindow_KeyDown(object sender, KeyEventArgs e) { if (Keyboard.Modifiers == ModifierKeys.Alt && e.SystemKey == Key.Space) { e.Handled = true... 阅读全文
posted @ 2012-06-21 13:24 JunBird 阅读(2199) 评论(0) 推荐(0) 编辑
摘要: 本章共计51个示例,全都在VS2008下.NET3.5测试通过,点击这里下载:Printing.rar1.PrintDialogThis sample illustrates how to create an instance of a simple PrintDialog and then display it. The sample uses both Extensible Application Markup Language (XAML) and procedural code.这个示例演示了如何进行一个最简单的打印工作,为此需要引入两个dll:ReachFramework.dll和S 阅读全文
posted @ 2012-06-21 09:03 JunBird 阅读(1421) 评论(0) 推荐(0) 编辑