随笔分类 - WPF
摘要:wpf 自定义圆形按钮 效果图 默认样式 获取焦点样式 点击样式 下面是实现代码: 一个是自定义控件类,一个是控件类皮肤 1 using System; 2 using System.Collections.Generic; 3 using System.ComponentModel; 4 usin
阅读全文
摘要:/// /// 设置颜色动画 /// /// private SolidColorBrush ColorAnimation() { ColorAnimationUsingKeyFrames colorAnimation = new ColorAnimationUsingKeyFrames(); colorAnimation.Duration = TimeSpan.FromSeconds(1); colorAnimation.FillBehavior = ...
阅读全文
摘要:验证方式, 通过继承IDataErrorInfo接口 和DataAnnotations 解释标记语言而实现, 为了能在WPF上通用,所了也要继承属性更改通知接口INotifyPropertyChanged实际INotifyPropertyChanged接口 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.ComponentModel; 6 7 namespace ClassLibrary1 8 { 9 p...
阅读全文
摘要:前段时候写了一个WPF多语言界面处理,个人感觉还行,分享给大家.使用合并字典,静态绑定,动态绑定.样式等东西效果图 定义一个实体类LanguageModel,实际INotifyPropertyChanged接口 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.ComponentModel; 6 7 namespace WpfApplication1 8 { 9 public class LanguageM...
阅读全文

浙公网安备 33010602011771号