I am using template 10 and want my splash screen to look like this:
I have got the circular progress Bar control Here and got it around a image through Grace Feng help from this code Link
Now I want this round progress control into my splash screen so it look like like the above images but in the extended splash screen link tutorial they show it by canvas and i want to do it by Myprogress control any idea how to implement this control in extended splash screen.If i just use it in splash.xaml then my app builds and start but then it hangs.But removing this control it runs perfectly.Any help would be appreciated. Thank You.
Although it uses
Canvas
in the official document to show the content of the extended splash screen, there is no need to code exactly same as the document, the code in the document is just for a example. Even you don't need to create a new blank page for extended splash screen, you can also create aUserControl
to do this.For some information about using
Extended Splash Screen in Template 10
, you may refer to Template10: a new template to create Universal Windows apps – The basics.So here is my example, I created a
UserControl
namedExtendedSplash
:The code behind is very simple just handling the TimeTikcer of the circular progressbar:
To use this
ExtendedSplash
, you can in the App.xaml.cs file code like this:The reason why using
SplashFactory
is explained in the blog I provided above. And you can find my sample here.Update:
First of all, this error code is not my code, this is your provided circular progress bar. And this is a COM-based APIs error code. The error message is quite clear: The message filter indicated that the application is busy. As you said, "while it is in hanged state", this error occurred.
A simple way to handle this exception, you can add a "try catch" to this code like this: