09 2010 档案

silverlight 4 知识归类与汇总(三)元素的坐标系与布局面板
摘要:1 Margin与Padding的逗号语法 通过使用System.Windows.ThicknessConverter来讲XAML语法转化为具体的Thickness Margin=”10” 等价于 xxxx.Margin=new Thickness(10); Margin=”10,5”等价于xxxx.Margin=new Thickness(10,5,10,5); 2 Label 的 Vertic... 阅读全文

posted @ 2010-09-26 14:02 imbob 阅读(615) 评论(0) 推荐(0) 编辑

silverlight 4 知识归类与汇总(二)常用控件篇
摘要:ContentPropertyAttribute 类 指定在通过 XAML 处理器分析某个类时,可以将该类的哪个属性解释为内容属性。(XAML子元素隐式添加到的属性) (该子元素将添加到其Name属性中)1 内容控件只包含单一项的控件,其Content属性的类型为object如果其内容为UIElement或者模板,则对其进行渲染,否则调用ToString()方法,将返回值放到TextBlock里以... 阅读全文

posted @ 2010-09-26 10:10 imbob 阅读(442) 评论(0) 推荐(0) 编辑

silverlight 4 知识归类与汇总(一)XAML篇
摘要:1. XAML的命名空间 在VS中创建一个silverlight项目 其中MainPage.xaml的内容如下 xmlns=http://schemas.microsoft.com/winfx/2006/xaml/presentation 是一个XML命名空间,其映射了多个.NET命名空间System.Windows,System.Windows.Automation例如可以在Core项目的Ass... 阅读全文

posted @ 2010-09-21 13:56 imbob 阅读(489) 评论(0) 推荐(0) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示