关闭窗口时 将数据设置为null
This commit is contained in:
@@ -95,6 +95,7 @@ namespace GeekDesk.Control.Windows
|
||||
{
|
||||
if (e.Key == Key.Escape)
|
||||
{
|
||||
this.DataContext = null;
|
||||
this.Close();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user