摘要: 用过WPF的童鞋都知道,Panel或者ItemsControl之类的控件能够在XAML里直接为它们设置子项:<Grid> <Label Content="1" /> <Label Content="2" /> <Label Content="3" /></Grid><ListBox> <Label Content="1" /> <Label Content="2" /> <Label Conte 阅读全文
posted @ 2013-05-02 14:19 Kation 阅读(2165) 评论(0) 推荐(2) 编辑
摘要: 在编写WPF的XAML文件时,我们都会看到系统生成的默认文件里,包含如下东西:xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"那么他们是什么意思呢?xmlns是XAML引用的命名空间不带冒号的,是作为默认命名空间,例如:<TextBlock />带冒号的,在XML里就需要用前缀来引用,例如:<x:Code />当你复制上面引用的地址到浏览器里打 阅读全文
posted @ 2013-05-02 13:36 Kation 阅读(1427) 评论(0) 推荐(2) 编辑