关闭窗口时 将数据设置为null

This commit is contained in:
liufei
2022-01-09 17:44:25 +08:00
parent 65d57b69b6
commit 8decd923ff
4 changed files with 4 additions and 0 deletions

View File

@@ -95,6 +95,7 @@ namespace GeekDesk.Control.Windows
{
if (e.Key == Key.Escape)
{
this.DataContext = null;
this.Close();
}
}

View File

@@ -247,6 +247,7 @@ namespace GeekDesk.Control.Windows
{
if (e.Key == Key.Escape)
{
this.DataContext = null;
this.Close();
}
}

View File

@@ -102,6 +102,7 @@ namespace GeekDesk.Control.Windows
{
if (e.Key == Key.Escape)
{
this.DataContext = null;
this.Close();
}
}

View File

@@ -111,6 +111,7 @@ namespace GeekDesk.Control.Windows
{
if (e.Key == Key.Escape)
{
this.DataContext = null;
this.Close();
}
}