I'm trying to implement a startup wizard for a UWP application. Preferably the wizard should open in a new window that is non-resizable and located at the center of the screen.
I have already tried to use LaunchUriForResultsAsync
in order to launch a dummy protocol inside our own app. This way, I could open a new non-resizable window, but it had fixed size (500x500) and position (left side of the main app). Trying to call TryResizeView
or to set PreferredLaunchViewSize
didn't have any effect, even though they would work within the main (first) window of the same UWP app.
I could find only a couple of examples from other apps:
- Xbox app: seem to bring a new hosted window in a new process - but I'd rather not start the wizard window in a new process.
- Skype app: Their initial setup and the add contact dialogs seem to be just custom controls inside the main window, which looks and behaves similar to the ContentDialog but with an x button to close it.
Instead of implementing the whole wizard logic by myself, I was wondering if there's any template or best practice for this scenario within a UWP application?