随笔分类 -  wpf

摘要:一、创建BoolVisibilityConverter类和OppositeVisibilityConverter类 BoolVisibilityConverter.cs OppositeVisibilityConverter.cs 二、创建MainButton用户控件 MainButton.xaml 阅读全文
posted @ 2017-07-25 15:23 by-lhc 阅读(425) 评论(0) 推荐(0)
摘要:一、创建BannerAD用户控件 一个Banner用户控件可以包含n个BannerAD用户控件,在此创建2个BannerAD用户控件作为示例; BannerAD1.xaml BannerAD1.xaml.cs BannerAD2.xaml BannerAD2.xaml.cs 二、创建BoolVisi 阅读全文
posted @ 2017-07-24 17:15 by-lhc 阅读(326) 评论(0) 推荐(0)
摘要:1:source指向url url可以是任何一张网络上的图片; 2:source指向本项目的图片地址 pack://application:,,,/images/test.jpg 可以简写为:/images/test.jpg 3:source指向引用项目的图片地址 pack://applicatio 阅读全文
posted @ 2017-07-21 19:16 by-lhc 阅读(1154) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2017-07-20 18:26 by-lhc 阅读(7879) 评论(0) 推荐(0)
摘要:1:image button样式 <Style x:Key="Button.File" TargetType="Button"> <Setter Property="Cursor" Value="Hand"></Setter> <Setter Property="Template" > <Sette 阅读全文
posted @ 2017-07-19 18:45 by-lhc 阅读(908) 评论(0) 推荐(0)
摘要:1:icon button样式 <Style x:Key="IconButton" TargetType="{x:Type Button}"> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="{x:Ty 阅读全文
posted @ 2017-07-19 14:27 by-lhc 阅读(632) 评论(0) 推荐(0)