|
|
|
@ -1,3 +1,4 @@ |
|
|
|
using System; |
|
|
|
using Avalonia.Controls; |
|
|
|
using Avalonia.Markup.Xaml; |
|
|
|
|
|
|
|
@ -8,6 +9,7 @@ namespace MobileSandbox |
|
|
|
public MainWindow() |
|
|
|
{ |
|
|
|
this.InitializeComponent(); |
|
|
|
//this.ClosingBehavior = WindowClosingBehavior.OwnerWindowOnly;
|
|
|
|
|
|
|
|
//Renderer.DrawFps = true;
|
|
|
|
//Renderer.DrawDirtyRects = Renderer.DrawFps = true;
|
|
|
|
@ -17,5 +19,18 @@ namespace MobileSandbox |
|
|
|
{ |
|
|
|
AvaloniaXamlLoader.Load(this); |
|
|
|
} |
|
|
|
|
|
|
|
protected override void OnClosing(WindowClosingEventArgs e) |
|
|
|
{ |
|
|
|
base.OnClosing(e); |
|
|
|
|
|
|
|
e.Cancel = true; |
|
|
|
this.Hide(); |
|
|
|
} |
|
|
|
|
|
|
|
protected override void OnClosed(EventArgs e) |
|
|
|
{ |
|
|
|
base.OnClosed(e); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|