UWP FirstRunDialog Turn Off

Fritz Switzer 241 Reputation points
2020-03-23T14:55:47.84+00:00

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.

thanks

Universal Windows Platform (UWP)
{count} votes

Accepted answer
  1. Richard Zhang-MSFT 6,936 Reputation points
    2020-03-24T04:12:08.853+00:00

    Hello,​

    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();

    Thanks.

    0 comments No comments

0 additional answers

Sort by: Most helpful