09 2021 档案
摘要:在主窗体添加键盘点击事件 private void Window_PreviewKeyDown(object sender, KeyEventArgs e) { Key key = (e.Key == Key.System ? e.SystemKey : e.Key); if (key == Key
阅读全文
摘要:SolidColorBrush solidColorBrush = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#2D5073"));
阅读全文
摘要:修改以下这部分改变可以改变边框和背景色 以下是样式模板代码 <Style x:Key="FocusVisual"> <Setter Property="Control.Template"> <Setter.Value> <ControlTemplate> <Rectangle Margin="0"
阅读全文
摘要:错误写法: public Thickness Radius { get { return (Thickness)GetValue(RadiusProperty); } set { SetValue(RadiusProperty, value); } } public static readonly
阅读全文