摘要: 1、ControlTemplate只能包括一个子项,如下图可以用个Border作为根子项再在其中添加 <ControlTemplate x:Key="CloseBtnStyle" TargetType="Button"> <Border Background="DarkOrange" CornerR 阅读全文
posted @ 2021-10-28 21:41 岳振威 阅读(188) 评论(0) 推荐(0) 编辑
摘要: <!--第一种默认的方式 指定绑定的数据源和路径--> <TextBlock Text="{Binding Source={StaticResource ViewModel}, Path=temp}" ></TextBlock> <!--第二种采用Element方式--> <TextBlock Te 阅读全文
posted @ 2021-10-28 14:34 岳振威 阅读(1134) 评论(0) 推荐(0) 编辑