We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7aee4b2 commit 4423e40Copy full SHA for 4423e40
UdapEdAppMaui/Services/MainPageService.cs
@@ -0,0 +1,19 @@
1
+#if WINDOWS
2
+using WinUIEx;
3
+#endif
4
+using UdapEd.Shared.Services;
5
+
6
+namespace UdapEdAppMaui.Services;
7
8
+public sealed class MainPageService : IMainPageService
9
+{
10
+ public void BringToFront()
11
+ {
12
13
+ var mauiWindow = Application.Current?.Windows.FirstOrDefault();
14
+ var window = mauiWindow?.Handler?.PlatformView as Microsoft.UI.Xaml.Window;
15
+ window?.SetForegroundWindow();
16
17
+ // No-op on other platforms
18
+ }
19
+}
0 commit comments