iblog 5

苹果有iphone,我有iblog

导航

2012年7月2日

摘要: 原文出处:http://www.bianceng.cn/Programming/net/201010/19512_2.htm为了使用 Personal 和 PersonalList,我们引入了一个 CLR Namespace。在主从结构 (Master-Detail) 显示中,我们通常要实现 "选择项跟踪" 功能,也就是说当我们选中主表的某个记录时,其他细节控件要同步刷新该记录的细节内容。<Window x:Class="Learn.WPF.Window1" xmlns="http://schemas.microsoft.com/winf 阅读全文

posted @ 2012-07-02 17:41 cbtech 阅读(1549) 评论(0) 推荐(0) 编辑

摘要: 原文出处:http://www.im47.cn/?p=482ElementNameThe ElementName property is used to reference an object by the name of the object. This is particularly useful in XAML, where you can directly reference other elements defined in XAML. 举例<StackPanel Background=”Blue”><Button x:Name=”refButton” Backgr 阅读全文

posted @ 2012-07-02 17:20 cbtech 阅读(6563) 评论(0) 推荐(0) 编辑

摘要: 原文出处:http://blog.csdn.net/sam1012/article/details/6690913ObjectDataProvider提供了绑定任意.net类型的功能,具体功能如下: 1.ObjectDataProvider提供了绑定任意CLR类型的公嫩那个。 2.它可以再XAML中利用生命史的语言以及参数化的构造函数完成对数据的创建 3.增加对成员函数的绑定 4.提供了更多的异步绑定的功能 下面用一个加法计算器来进行实例说明: 请先看我们的加法类: C#代码 namespaceBindingDemo { publicclassCalculator { pu... 阅读全文

posted @ 2012-07-02 16:40 cbtech 阅读(224) 评论(0) 推荐(0) 编辑

摘要: 在项目中添加一个文件夹images ,在文件夹下添加一个tree.jpg的图片。在“解决方案资源管理器”中选择该图片,在属性窗口中将“复制到输出目录”选中“始终复制”,将“生成操作”选择为“内容”,这样,编译后,会在bin/debug目录下生成一个含有tree.jpg图片的名为images的文件夹。private void button1_Click(object sender, RoutedEventArgs e){ Uri uri = new Uri(@"images/tree.jpg", UriKind.Relative); ImageBrush ib = new I 阅读全文

posted @ 2012-07-02 16:18 cbtech 阅读(7835) 评论(0) 推荐(0) 编辑

摘要: Uri uri = new Uri(@"images/tree.jpg", UriKind.Relative);image1.Source = new BitmapImage(uri); 阅读全文

posted @ 2012-07-02 16:10 cbtech 阅读(3105) 评论(0) 推荐(0) 编辑

摘要: Color c = Color.FromRgb(200, 200, 200);SolidColorBrush s = new SolidColorBrush(c);this.Background = s; 阅读全文

posted @ 2012-07-02 15:52 cbtech 阅读(1449) 评论(0) 推荐(0) 编辑