xaml - ExtendedSplashScreen with custom size and Animation C# UWP -


i trying accomplish uwp app adding extendedsplashscreen. in uwp splashscreen should have specific dimensions , should added in splashrect in centre of page. want:

  1. splash taking screen size (for different screen sizes)
  2. make animation of displaying different pictures after each others.

could accomplished? allowed in uwp design guidlines? accomplishing this?

could accomplished?

yes,i have uploaded completed demo meet requirements. can download csplashscreen solution testing. meet requirement,

make animation of displaying different pictures after each others.

i implement flipview control , dispatchertimer. splash screen can display picture 1 one automatically.

splash taking screen size (for different screen sizes)

the flipview fit window's size , image displayed full window in different devices.

xaml code:

<flipview x:name="imageflipview">    <image source="ms-appx:///assets/caffe600320.jpg" stretch="fill" />    <image source="ms-appx:///assets/cafee2.jpg" stretch="fill" />    <image source="ms-appx:///assets/caffe3.jpg" stretch="fill" /> </flipview> 

code behind:

private splashscreen splash; // variable hold splash screen object internal bool dismissed = false; // variable track splash screen dismi internal frame rootframe; private readonly dispatchertimer _timer;  public extendedsplash(splashscreen splashscreen, bool loadstate) {     this.initializecomponent();     statusbar statusbar = statusbar.getforcurrentview();     statusbar.hideasync();     if (splash != null)     {         splash.dismissed += new typedeventhandler<splashscreen, object>(d     }     rootframe = new frame();     _timer = new dispatchertimer     {         interval = timespan.fromseconds(2)     };     _timer.tick += changeimage;     _timer.start(); }  private void changeimage(object sender, object e) {     var totalitems = imageflipview.items.count;     var newitemindex = (imageflipview.selectedindex + 1) % totalitems;     imageflipview.selectedindex = newitemindex; }    void dismissedeventhandler(splashscreen sender, object e) {     dismissed = true;             } 

is allowed in uwp design guidlines?

from official document display splash screen more time,

make sure extended splash screen accurately imitates default splash screen following these recommendations:

the document has recommendations on creating own extended splash screen. best practice follow recommendations. , guidelines splash screens suggest :

  • don't use splash screen or extended splash screen display advertisements.
  • don't use extended splash screen mechanism display multiple, different splash screen images. purpose of splash screen , extended splash screen provide smooth, polished loading experience users.
  • don't use splash screen or extended splash screen display "about" page.

Popular posts from this blog

php - How should I create my API for mobile applications (Needs Authentication) -

python 3.x - PyQt5 - Signal : pyqtSignal no method connect -

5 Reasons to Blog Anonymously (and 5 Reasons Not To)