上一页 1 ··· 31 32 33 34 35 36 37 38 39 ··· 86 下一页
摘要: 一、绑定自定义对象 1.绑定 <StackPanel Name="StudentPanel" > <TextBox Text="{Binding Path=Id}" Height="30" Width="100"></TextBox> <TextBox Text="{Binding Path=Age 阅读全文
posted @ 2020-01-17 10:39 富坚老贼 阅读(233) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2020-01-17 10:37 富坚老贼 阅读(140) 评论(0) 推荐(0)
摘要: 一、逻辑树和可视化树 二、模板 1.创建模板 <Window.Resources> <ControlTemplate x:Key="ButtonTemplate" TargetType="{x:Type Button}"> <Border BorderBrush="Orange" BorderThi 阅读全文
posted @ 2020-01-16 15:59 富坚老贼 阅读(218) 评论(0) 推荐(0)
摘要: 一、样式基础 样式可以定义一套组合的属性, 1.xaml方式 <Window.Resources> <Style x:Key="btnStyle"> <Setter Property="FrameworkElement.Width" Value="200"></Setter> <Setter Pro 阅读全文
posted @ 2020-01-13 13:16 富坚老贼 阅读(169) 评论(0) 推荐(0)
摘要: 1.连接报表 2.准备数据 阅读全文
posted @ 2020-01-10 09:31 富坚老贼 阅读(179) 评论(0) 推荐(0)
摘要: 一、资源基础 资源的查找层次 每个元素的资源--》应用程序资源--》系统资源 1.元素级别的资源 <Button Width="200" Height="50" > <Button.Resources> <!--应用程序的根目录下--> <ImageBrush x:Key="brush" Image 阅读全文
posted @ 2020-01-09 16:18 富坚老贼 阅读(173) 评论(0) 推荐(0)
摘要: 命令将控件连接到命令,不需要重复编写事件处理代码,当命令不能可用时,自动禁用控件来管理用户界面的状态 命令将事件委托到适当的命令 控件的启用太壮和相应的命令状态保持同步 一、命令模型 1.ICommand 命令的核心是ICommand接口 public interface ICommand { // 阅读全文
posted @ 2020-01-09 14:44 富坚老贼 阅读(240) 评论(0) 推荐(0)
摘要: 绑定具有四个组成部分: 绑定目标对象。 目标属性。 绑定源。 绑定源中要使用的值的路径 被绑定目标属性必须是依赖项属性 一、绑定到元素 1.元素绑定 元素绑定 使用{Binding ElementName= ,Path= } 这种方式比valueChanged事件要简单 2.绑定模式 数据绑定的一个 阅读全文
posted @ 2020-01-09 11:13 富坚老贼 阅读(189) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2020-01-09 08:44 富坚老贼 阅读(111) 评论(0) 推荐(0)
摘要: 一、 Frame 二、 Hyperlink 三、 Page 四、NavigationWindow 五、TabControl 阅读全文
posted @ 2020-01-06 12:06 富坚老贼 阅读(280) 评论(0) 推荐(0)
上一页 1 ··· 31 32 33 34 35 36 37 38 39 ··· 86 下一页