06 2013 档案

摘要:原文:The VisualStateManager and TriggersAuthor:Carole Snyder Silverlight 推出了可视化状态管理器(Visual State Manager ),它使得控件模版作者更方便地指定依赖可视化状态的控件外观。WPF Toolkit附带了一个可视化状态管理器(Visual State Manager ),WPF 的下个版本将会加入 VSM。可以理解地,VisualStateManager 的引进带来了问题:何时使用 VSM 代替触发器,何时使用触发器会更适合。本博文尝试解决这个问题:更多对如何使用可视化状态管理器(VisualStat. 阅读全文
posted @ 2013-06-26 13:28 SubmarineX 阅读(1713) 评论(1) 推荐(0)
摘要:效果如下:用到扩展工具:NestIn可以通过 VS->工具->扩展管理器->联机库 搜索安装。In WPF: How to create resource dictionary files like MahApps.Metro?Nesting Files in VisualStudio 阅读全文
posted @ 2013-06-25 17:38 SubmarineX 阅读(593) 评论(0) 推荐(0)
摘要:原文:Creating “Cool” Buttons with Expression BlendAuthor:Alex 在本文中,我们将考虑在Expression Blend用几种方法来创建酷炫的凝胶状按钮。如果你看到 Expression Blend 或 Visual Studio 中的 WPF 默认外观的 Button,你会发现它一点也不酷。它仍旧是过时的chrome 样子的按钮控件,然而 Expression Blend 和 Windows Presentation Foundation (WPF) 不仅具有基本功能而且能够提升用户体验(User eXperience,UX)。所以为了. 阅读全文
posted @ 2013-06-24 16:25 SubmarineX 阅读(1746) 评论(3) 推荐(0)
摘要:A guide to cleaner XAML with custom namespaces and prefixes (WPF/Silverlight)XAML Namespaces and Namespace Mapping for WPF XAML 阅读全文
posted @ 2013-06-09 17:26 SubmarineX 阅读(191) 评论(0) 推荐(0)
摘要:1 <TextBlock>2 <Hyperlink 3 Click="ForgetPassword">4 忘记密码5 </Hyperlink>6 </TextBlock>—EOF— 阅读全文
posted @ 2013-06-05 15:18 SubmarineX 阅读(379) 评论(0) 推荐(0)
摘要:在不同情况下,显示不同的控件。Case1:ToggleButton显示,Grid的Visibility通过ToggleButton的IsChecked属性绑定;Case2:ToggleButton隐藏,Grid显示。通过类型判断进入处理部分: 1 public HelloWindow(WinType type) 2 { 3 winType = type; 4 5 InitializeComponent(); 6 7 if (winType == WinType.Case1) 8 { 9 myToggleButton.Visibility = ... 阅读全文
posted @ 2013-06-05 14:36 SubmarineX 阅读(615) 评论(0) 推荐(0)