09 2021 档案

摘要:在主窗体添加键盘点击事件 private void Window_PreviewKeyDown(object sender, KeyEventArgs e) { Key key = (e.Key == Key.System ? e.SystemKey : e.Key); if (key == Key 阅读全文
posted @ 2021-09-17 14:26 奇迹之耀 阅读(221) 评论(0) 推荐(0) 编辑
摘要:SolidColorBrush solidColorBrush = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#2D5073")); 阅读全文
posted @ 2021-09-14 08:45 奇迹之耀 阅读(259) 评论(0) 推荐(0) 编辑
摘要:修改以下这部分改变可以改变边框和背景色 以下是样式模板代码 <Style x:Key="FocusVisual"> <Setter Property="Control.Template"> <Setter.Value> <ControlTemplate> <Rectangle Margin="0" 阅读全文
posted @ 2021-09-02 19:09 奇迹之耀 阅读(246) 评论(0) 推荐(0) 编辑
摘要:错误写法: public Thickness Radius { get { return (Thickness)GetValue(RadiusProperty); } set { SetValue(RadiusProperty, value); } } public static readonly 阅读全文
posted @ 2021-09-01 08:47 奇迹之耀 阅读(345) 评论(0) 推荐(0) 编辑

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