Mvvm Light 无法添加MvvmView(Win81)的问题
摘要:After I create a MvvmLight(Win81) project, I want add a new view , but there is only MvvmView(Win8), there is no MvvmView(Win81)在源代码 mvvmlight_638169c85b8c\Installer\InstallItems\GalaSoft.MvvmLight.Templates\ItemTemplates中找到View.Win81等3个压缩文件,将其拷贝至C:\Users\userName\AppData\Local\Microsoft\VisualStudi
阅读全文
MVVM Light 笔记 - snippet
摘要:RelayCommand有8个,看似很多,其实就是几个变化的组合:1.是否Generic2. 执行是使用lambda表达式还是method3.是否有CanExecute这些都在源代码Snippets中
阅读全文
在win8 App中,StorageFile比Path更好用
摘要:Skip the path: stick to the StorageFile:http://blogs.msdn.com/b/wsdevsol/archive/2012/12/05/stray-from-the-path-stick-to-the-storagefile.aspxConverting a StorageFile to a path to remember it for later is often workable, but you will need to have a fallback identifier for path-less StorageItems. The
阅读全文
XAML中用一字符即可展示漂亮的图型
摘要:XAML中用一字符即可展示漂亮的图型例如:Symbol Icon: Peoplehttp://www.geekchamp.com/icon-explorer/action-icons/icon?code=e125 图形:使用方法:注意:字体必须是Segoe UI Symbol如果你使...
阅读全文
关于Windows 8 合约
摘要:浅谈win8合约:http://www.devdiv.com/Windows_Metro-windows_metro_app_windows_contracts_-thread-131717-1-1.htmlWindows 8 中搜索合约的使用: http://www.devdiv.com/Windows_Metro-windows_metro_app_windows_-thread-131730-1-1.html在您的应用程序中激活 Windows 8 合约: http://blogs.msdn.com/b/windowsappdev_cn/archive/2012/03/30/window
阅读全文
ListView动态改变每一项的高度。
摘要:ListView中每一项的高度默认是相同的,除非超过其预定高度值,否则需要动点手脚。VariableSizedListView 继承 ListView然后重写protected override void PrepareContainerForItemOverride(DependencyObject element, object item){var localItem = item as HeadingItem;var lvi = element as ListViewItem;lvi.Height = 28;//这样就修改了高度 lvi.Margin = new Thickness(0,
阅读全文