-
Notifications
You must be signed in to change notification settings - Fork 742
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
30484be
commit 9f25358
Showing
15 changed files
with
212 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
...UI.Runtime.Skia.Gtk/Extensions/UI/Core/Preview/SystemNavigationManagerPreviewExtension.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#nullable enable | ||
|
||
using Gtk; | ||
using Uno.UI.Core.Preview; | ||
|
||
namespace Uno.Extensions.UI.Core.Preview; | ||
|
||
public class SystemNavigationManagerPreviewExtension : ISystemNavigationManagerPreviewExtension | ||
{ | ||
private readonly Window _window; | ||
|
||
public SystemNavigationManagerPreviewExtension(Gtk.Window window) | ||
{ | ||
_window = window; | ||
} | ||
|
||
public void RequestNativeAppClose() => _window.Close(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
...UI.Runtime.Skia.Wpf/Extensions/UI/Core/Preview/SystemNavigationManagerPreviewExtension.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
using System.Windows; | ||
using Uno.UI.Core.Preview; | ||
|
||
namespace Uno.Extensions.UI.Core.Preview | ||
{ | ||
public class SystemNavigationManagerPreviewExtension : ISystemNavigationManagerPreviewExtension | ||
{ | ||
public void RequestNativeAppClose() => Application.Current.MainWindow.Close(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
src/Uno.UWP/UI/Core/Preview/Internal/ISystemNavigationManagerPreviewExtension.skia.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
namespace Uno.UI.Core.Preview; | ||
|
||
public interface ISystemNavigationManagerPreviewExtension | ||
{ | ||
void RequestNativeAppClose(); | ||
} |
Oops, something went wrong.