Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Application crashes at loading phase when change window size #38

Closed
Nab0y opened this issue Aug 21, 2015 · 2 comments
Closed

Application crashes at loading phase when change window size #38

Nab0y opened this issue Aug 21, 2015 · 2 comments

Comments

@Nab0y
Copy link

Nab0y commented Aug 21, 2015

Application crashes at loading phase (splash by default) when the user changes the window size.

    public static Visibility CalculateBackVisibility(Frame frame)
    {
        // by design it is not visible when not applicable
        var cangoback = frame.CanGoBack; // Chash here

Since this time frame still null

@JerryNixon
Copy link
Member

Not sure why this would occur. I added.

// in some cases frame may be null, esp. race conditions
if (frame == null)
    return Visibility.Collapsed;

@eloekset
Copy link
Contributor

If others are using "Advanced View States for Windows 10 apps" this bug causes the app to crash on startup because DeviceTrigger.Initialize() tries to get access to Shell.Frame, which is null. Here is a tip to workaround that issue: http://www.codeproject.com/Articles/896974/Advanced-View-States-for-Windows-apps?msg=5147438#xx5147438xx

It would be great if someone could find a way to fix the Shell.Frame = null bug, to avoid similar issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants