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