上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 37 下一页
摘要: http://www.cnblogs.com/lyrix/archive/2004/06/16/16145.html 阅读全文
posted @ 2012-03-08 15:57 Ken-Cai 阅读(216) 评论(0) 推荐(0) 编辑
摘要: public class TreeNode { public string NodeID { get; set; } public string NodeName { get; set; } public List<TreeNode> Children { get; set; } }<UserControl x:Class="TreeViewDemo.MainPage3" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="htt 阅读全文
posted @ 2012-02-10 15:10 Ken-Cai 阅读(446) 评论(0) 推荐(0) 编辑
摘要: <ListBox ItemsSource="{Binding Provinces}" DisplayMemberPath="ProvinceName"/> ListBox其实有一个默认的ItemTemplate,它以一个Content控件来显示DisplayMemberPath定义的字段的内容,我们可以自定义ItemTemplate让ListBox显示更多的内容,注意ItemTemplate与DisplayMemberPath不能同时定义 <ListBox ItemsSource="{Binding Provinces}&qu 阅读全文
posted @ 2012-02-10 15:00 Ken-Cai 阅读(1418) 评论(0) 推荐(1) 编辑
摘要: <ButtonContent="按钮"Command="{BindingButtonCommand}"/> // 按钮点击命令 public ICommand ButtonCommand { get { return new RelayCommand( () => System.Windows.MessageBox.Show("当前时间:" + System.DateTime.Now.ToString()) ); } } 阅读全文
posted @ 2012-02-10 14:46 Ken-Cai 阅读(350) 评论(0) 推荐(0) 编辑
摘要: 一个 Silverlight 一般只有一个 ViewModelLocator 。如果是通过MVVM 模板建立的项目,默认就有该文件了。用到的Code Snape : mvvmlocatorproperty。App.Xaml,先添加ViewModel命名控件引用,然后为ViewModelLocator添加一个全局的资源 <Application.Resources> <vm:ViewModelLocator x:Key="Locator" d:IsDataSource="True" /> </Application.Resou 阅读全文
posted @ 2012-02-10 14:44 Ken-Cai 阅读(1024) 评论(0) 推荐(0) 编辑
摘要: 在Visual Studio中,选择工具 / 代码段管理器/ My Code Snippetss 找出My Code Snippetss 的路径。将 Mvvm Light 代码段 的文件复制到 My Code Snippetss 中。Mvvm Light 代码段 默认在C:\Program Files\Laurent Bugnion (GalaSoft)\Mvvm Light Toolkit\Snippets\CSharp 阅读全文
posted @ 2012-02-10 11:30 Ken-Cai 阅读(397) 评论(0) 推荐(0) 编辑
摘要: duanzilin的博客 http://blog.csdn.net/duanzilin/article/details/6387639 阅读全文
posted @ 2012-02-10 11:27 Ken-Cai 阅读(235) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/zwq194/archive/2011/03/07/1974006.html 阅读全文
posted @ 2011-11-23 11:42 Ken-Cai 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 在这里下载http://www.livetome.cn/thread-22498-1-1.html 阅读全文
posted @ 2011-10-29 10:12 Ken-Cai 阅读(134) 评论(0) 推荐(0) 编辑
摘要: http://hi.baidu.com/greatverve/blog/item/f7e35f0f23c820ea37d12274.html MSDN 阅读全文
posted @ 2011-09-23 16:58 Ken-Cai 阅读(126) 评论(0) 推荐(0) 编辑
上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 37 下一页