Closed
Conversation
Signed-off-by: Lamparter <notlamparter@outlook.com>
Signed-off-by: Lamparter <notlamparter@outlook.com>
Author
|
@ryanlua please use the squash and merge feature because I would like to get credit for this pr |
Owner
Author
I may have mistyped something - @ryanlua I'm on holiday right now when I get back I'll take a closer look |
Owner
|
@Lamparter Are you still working on this or can I close this stale PR? |
Author
|
Yeah I don't think I really understand how to add the splashscreen; it's strange because this line of code usually adds it. Perhaps that's only on UWP apps 😅 |
Author
|
This might work: protected override void OnLaunched(LaunchActivatedEventArgs args)
{
base.OnLaunched(args);
Frame rootFrame = Window.Current.Content as Frame;
if (rootFrame == null)
{
rootFrame = new Frame();
rootFrame.NavigationFailed += OnNavigationFailed;
Window.Current.Content = rootFrame;
}
if (rootFrame.Content == null)
{
rootFrame.Navigate(typeof(MainPage), args.Arguments);
}
Window.Current.Activate();
}That's how I have it in some apps. I'll take a look later. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Description
Makes splashscreen not optional
Related Issues
https://discord.com/channels/714581497222398064/1273778948903403520/1273778948903403520
Changes Made
Checklist
Additional Notes
All of these code changes completed on my phone! 😄
Code of Conduct
By submitting this issue, I agree to follow the Code of Conduct.