11 2021 档案

摘要:主页页面代码 <Grid> <TextBox x:Name="First" Width="80" Height="20" Text="{Binding Value,UpdateSourceTrigger=PropertyChanged}" Foreground="{Binding BorderCol 阅读全文
posted @ 2021-11-30 17:29 月长生 阅读(38) 评论(0) 推荐(0) 编辑
摘要:主页面代码 public partial class MainWindow : Window { MainViewModel mainViewModel = null; public MainWindow() { InitializeComponent(); mainViewModel = new 阅读全文
posted @ 2021-11-30 09:50 月长生 阅读(201) 评论(0) 推荐(0) 编辑
摘要:自定义模板 <ControlTemplate x:Key="ButtonStyle1" TargetType="Button"> <Border Background="Blue" CornerRadius="10"> <StackPanel Orientation="Horizontal" Hor 阅读全文
posted @ 2021-11-29 12:01 月长生 阅读(16) 评论(0) 推荐(0) 编辑
摘要:StackPanel容器:默认竖直排列,Orientation="Horizontal"横向排列,超过就不会显示 wrapPanel:超过会自动换行 设置样式: <Window.Resources> <Style x:Key="First" TargetType="Button">//targetT 阅读全文
posted @ 2021-11-29 12:01 月长生 阅读(12) 评论(0) 推荐(0) 编辑
摘要:ViewModel代码 public class MainViewModel { MainWindow _mainWindow; public MainViewModel(MainWindow mainWindow) { _mainWindow = mainWindow; } private str 阅读全文
posted @ 2021-11-29 12:00 月长生 阅读(264) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示