Code Monkey home page Code Monkey logo

Comments (7)

bc3tech avatar bc3tech commented on May 25, 2024

Looks like the resize() action/wireup is the problem. If I take that out, the image looks good on the screen. and the progress ring sits in the right spot as well.

from template10.

JerryNixon avatar JerryNixon commented on May 25, 2024

Possible error, one we observed in pre-release, was that splashscreen.Bounds was 0,0 all the time. A work around will be to not use resize() when it is detected as 0,0. A little bit of a hack, though. Even still, it might be the only thing we could do. Will you check?

from template10.

bc3tech avatar bc3tech commented on May 25, 2024

will do.

from template10.

nguyenquyhy avatar nguyenquyhy commented on May 25, 2024

I have filed the same issue in the SplashScreen sample of Windows-Universal-Samples repo. Basically the reported splash screen size on mobile is the raw size without applying scale factor while on PC, the reported size is the scaled size. I would really like to know if this behavior will be fixed before RTM or not.

from template10.

bc3tech avatar bc3tech commented on May 25, 2024

@JerryNixon I'm mostly blocked by the issue I mentioned on twitter; I think the splash screen's got something going on with it.

For example, when I change this line in Minimal's App.xaml.cs:
await Task.Delay(50);
(which waits for only 50ms)

to
await Task.Delay(50000);
(wait for 50 seconds)

it doesn't make a bit of a difference in how long the splash is shown... Looks like it might be something that was caused by a recent code change. commits I pulled this weekend have the delay working...

from template10.

bc3tech avatar bc3tech commented on May 25, 2024

I can, however, confirm that

                if (splashScreen.ImageLocation.Left != 0 || splashScreen.ImageLocation.Top != 0)
                {   // https://github.com/Windows-XAML/Template10/issues/55
                    MyImage.Height = splashScreen.ImageLocation.Height;
                    MyImage.Width = splashScreen.ImageLocation.Width;
                    MyImage.SetValue(Canvas.TopProperty, splashScreen.ImageLocation.Top);
                    MyImage.SetValue(Canvas.LeftProperty, splashScreen.ImageLocation.Left);
                    ProgressTransform.TranslateY = MyImage.Height / 2;
                }

causes the image to not be resized out of view on mobile and lets everything look nice.

from template10.

JerryNixon avatar JerryNixon commented on May 25, 2024

Fixed it.

from template10.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.