Describe the bug
I'm trying to use AppLifecycle.AppInstance redirection APIs to redirect to a single instance (and then bring that instance to the foreground), however it seems the foreground rights aren't being passed to the main instance when using RedirectActivationTo().
Steps to reproduce the bug
Steps to reproduce the behavior:
- Create a WinUI 3 desktop app using 1.0 Preview 1 and add AppInstance with single-instance redirection
- Call GetCurrent().GetActivatedEventArgs() first
- Then call FindOrRegisterForKey("main")
- If that main instance is current, register the Activated event
- Otherwise, call main.RedirectActivationToAsync(args)
- Within the Activated event, attempt to bring the window to the foreground
- Get the DispatcherQueue to enter the UI thread
- Then call the Activate() method on your window
- Expected: Window comes to foreground
- Actual: Nothing happens
Version Info
NuGet package version:
Microsoft.WindowsAppSDK 1.0.0-preview1
| Windows 10 version |
Saw the problem? |
| Insider Build (xxxxx) |
|
| May 2020 Update (19041) |
|
| November 2019 Update (18363) |
|
| May 2019 Update (18362) |
|
| October 2018 Update (17763) |
|
Additional context
Describe the bug
I'm trying to use AppLifecycle.AppInstance redirection APIs to redirect to a single instance (and then bring that instance to the foreground), however it seems the foreground rights aren't being passed to the main instance when using RedirectActivationTo().
Steps to reproduce the bug
Steps to reproduce the behavior:
Version Info
NuGet package version:
Microsoft.WindowsAppSDK 1.0.0-preview1
Additional context