跳到主要内容

github/tai

公开

Tai · Windows 软件与网站使用时长统计。上游 Planshit/Tai 的源码镜像,非灵栈原创;MIT 许可。来源:https://github.com/Planshit/Tai 。本次为手动同步,暂不提供安装包。

提交记录
修改UI/Controls/DatePickerBar/DatePickerBarItem.cs+11 −0看文件
@@ -5,6 +5,7 @@ using System.Text;
55using System.Threading.Tasks;
66using System.Windows;
77using System.Windows.Controls;
8新增:using System.Windows.Input;
89
910namespace UI.Controls.DatePickerBar
1011{
@@ -54,5 +55,15 @@ namespace UI.Controls.DatePickerBar
5455 DefaultStyleKey = typeof(DatePickerBarItem);
5556
5657 }
58新增: protected override void OnMouseEnter(MouseEventArgs e)
59新增: {
60新增: base.OnMouseEnter(e);
61新增: VisualStateManager.GoToState(this, "MouseOver", true);
62新增: }
63新增: protected override void OnMouseLeave(MouseEventArgs e)
64新增: {
65新增: base.OnMouseLeave(e);
66新增: VisualStateManager.GoToState(this, "Normal", true);
67新增: }
5768 }
5869}