UWP FirstRunDialog Turn Off

Fritz Switzer 181 Reputation points

I created an app using the Template Studio. It includes a FirstRunDialog feature.

Where can I programatically (in code-behind) turn on-off this dialog from appearing?

Using something like FirstRunDialog.Show=off as an example.


Universal Windows Platform (UWP)
{count} votes

Accepted answer
  1. Richard Zhang-MSFT 6,921 Reputation points


    Welcome to our Microsoft Q&A platform!

    In path Services/FirstRunDisplayService.cs, there is code that displays FirstRunDialog:

    if (SystemInformation.IsFirstRun && !shown)
        shown = true;
        var dialog = new FirstRunDialog();
        await dialog.ShowAsync();

    If you want to close it, you can use the code: dialog.Hide();


0 additional answers

Sort by: Most helpful