2012年8月23日

待解决的问题

摘要: (1)编译,运行都没用问题;但是设计器无法加载,开发时不能看到界面。(已解决)------------------------------------------------解决方法:在对应的xaml文件中添加xmlns:win="clr-namespace:System.Windows;assembly=PresentationFramework"再在出错的类型前面指定namespace:<win:VisualStateManager.VisualStateGroups> <win:VisualStateGroup x:Name="Common 阅读全文

posted @ 2012-08-23 15:22 木白力口岂几 阅读(196) 评论(0) 推荐(0)

WPF Menu设计Tips

摘要: (1)Menu的ItemContainerStyle属性,设计的是Menu中最末层的MenuItem(即本身没有子级菜单)的样式; 对以下2种MenuItem无效: (a)对最顶级的MenuItem无效,如图最顶端的后面2个MenuItem(这2个MenuItem下面没有子MenuItem); (b)对自身含有子级菜单的MenuItem无效,如图菜单1的第一个MenuItem含有一个子级MenuItem; ItemContainerStyle="{StaticResource Menu_MenuItemStyle}" 为了让MenuItem模板能根据不同层级的Menu... 阅读全文

posted @ 2012-08-23 15:12 木白力口岂几 阅读(3419) 评论(0) 推荐(2)

WPF中Grid网格线的设置:宽度,颜色,可视性

摘要: xmlns:gridHelper="clr-namespace:GridHelperLibrary;assembly=GridHelper"<Grid gridHelper:GridHelper.ShowBorder="True" gridHelper:GridHelper.GridLineThickness="10" gridHelper:GridHelper.GridLineBrush="YellowGreen" Height="260" HorizontalAlignment... 阅读全文

posted @ 2012-08-23 11:34 木白力口岂几 阅读(16924) 评论(1) 推荐(1)

导航