More fixes
This commit is contained in:
parent
15ede9b17a
commit
8caed1f4d2
@ -100,6 +100,8 @@ namespace AvaloniaCoreRTDemo
|
|||||||
|
|
||||||
desktop.MainWindow = newWindow;
|
desktop.MainWindow = newWindow;
|
||||||
this.DataContext = newWindow.DataContext;
|
this.DataContext = newWindow.DataContext;
|
||||||
|
|
||||||
|
oldWindow.Hide();
|
||||||
newWindow.Show();
|
newWindow.Show();
|
||||||
oldWindow.Close();
|
oldWindow.Close();
|
||||||
}
|
}
|
||||||
|
@ -37,6 +37,7 @@ namespace AvaloniaCoreRTDemo.Windows
|
|||||||
if (window is not null)
|
if (window is not null)
|
||||||
{
|
{
|
||||||
this.MainControl.Reload(window.Model);
|
this.MainControl.Reload(window.Model);
|
||||||
|
this.WindowStartupLocation = WindowStartupLocation.Manual;
|
||||||
this.WindowState = window.State;
|
this.WindowState = window.State;
|
||||||
this.Position = window.Position;
|
this.Position = window.Position;
|
||||||
this.FrameSize = window.FrameSize;
|
this.FrameSize = window.FrameSize;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user