diff --git a/App.xaml.cs b/App.xaml.cs
index 7dc3a17..72790e9 100644
--- a/App.xaml.cs
+++ b/App.xaml.cs
@@ -2,6 +2,8 @@
using GeekDesk.Util;
using System;
using System.Windows;
+using System.Windows.Input;
+using System.Windows.Threading;
namespace GeekDesk
{
@@ -38,6 +40,7 @@ namespace GeekDesk
void Current_DispatcherUnhandledException(object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e)
{
e.Handled = true;//使用这一行代码告诉运行时,该异常被处理了,不再作为UnhandledException抛出了。
+ Mouse.OverrideCursor = null;
LogUtil.WriteErrorLog(e, "未捕获异常!");
if (Constants.DEV)
{
@@ -50,6 +53,18 @@ namespace GeekDesk
LogUtil.WriteErrorLog(e, "严重异常!");
MessageBox.Show("GeekDesk遇到未知问题崩溃!");
}
+ public static void DoEvents()
+ {
+ var frame = new DispatcherFrame();
+ Dispatcher.CurrentDispatcher.BeginInvoke(DispatcherPriority.Background,
+ new DispatcherOperationCallback(
+ delegate (object f)
+ {
+ ((DispatcherFrame)f).Continue = false;
+ return null;
+ }), frame);
+ Dispatcher.PushFrame(frame);
+ }
}
diff --git a/Control/UserControls/ToDo/TodoControl.xaml b/Control/UserControls/ToDo/TodoControl.xaml
index d400a76..657799d 100644
--- a/Control/UserControls/ToDo/TodoControl.xaml
+++ b/Control/UserControls/ToDo/TodoControl.xaml
@@ -6,25 +6,58 @@
xmlns:local="clr-namespace:GeekDesk.Control.UserControls.PannelCard"
xmlns:hc="https://handyorg.github.io/handycontrol" xmlns:viewmodel="clr-namespace:GeekDesk.ViewModel" d:DataContext="{d:DesignInstance Type=viewmodel:ToDoInfo}"
mc:Ignorable="d"
+ xmlns:cst="clr-namespace:GeekDesk.Converts"
Background="Transparent"
>
+
+
+
+
+
+
+ HeadersVisibility="All"
+ AutoGenerateColumns="False"
+ ItemsSource="{Binding}"
+ IsReadOnly="True"
+ Initialized="DataGridMenu_Initialized"
+ >
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+