In my app, have long running process in background before loading the app. So that i developed splashscreen with progressbar in popup. Popup is open and closed is workign well. It doest not give any problem. But progressbar in splashscreen, not loaded quickly when popup opened, some second delay happend. Progressbar always in visible mode and Isdeterminate also true mode.
I don't know why delay happend for progressbar.
This problem happend only in windows phone 7.1 only.
Pls Help me.
Thanks
I think, you try to draw the same Splash Screen image but with Progress Bar on top after application has been launched. Probably, your hard loading work performed on UI thread, so it freeze Progress Bar also. Try to move all work to background thread and if you have complex layouts (in ListBox, for example), try to add items with some delay to give UI thread time to update anything else.
The splashcreen is shown whilst the phone unpacks the .XAP file, loads the assemblies, starts the Silverlight runtime and renders your first page. Until this happens, you application is not executing, so you cannot display a progress bar or perform any other tasks. Hence the delay.
The only think you can do is work to reduce the XAP size and make your initial UI as simple as possible so that the first page renders quickly.
Related
I was wondering what will happen to the UI when the app is minimized. Will it refresh the UI [With respect to its content] even when the app is minimized?
In the thumbnail[ When we hover on the app icon in taskbar ] we cant see apps UI being refreshed when app is minimized, but we can see the UI being refreshed in thumbnail when app goes to background and new app comes on the foreground.
What I think is, when the app is minimized, the UI thread/Main thread will keep updating the apps UI [depending on the content], but the changes will not be rendered on the screen. the changes will be stacked on a buffer and when the app is brought up, top of the buffer is rendered. Is this right?
It would be of great help if you can help me get a detailed understanding in it.
Thank you
You all know the Windows Phone backstack right. If you go through some apps, tap the Home key after starting each app. Now tap and hold the Backkey to see the Backstack. You can now see some small images of your apps, and can pick which one to go to right.
Question:
Is it possible to intercept before the backstack image is created? I have tried to blur my page in various events (include OnNavigatingFrom) to no avail.
My guess is some other event (probably something we don't have access to) is triggered and a bitmap is created, because when you use the Backstack to navigate you can just see a slight transition from the saved image to a real page IMO.
Does anyone know if its possible to intercept or manipulate these images on the backstack?
Example screenshot from WP emulator of the Backstack thumbnails
Following my comment, I've just tried this:
Set a breakpoint anywhere in the code
Start the app with the debugger attached, then let it reach the breakpoint
While the execution is stopped by the debugger, long press on the back button
The task switching UI is displayed even though the managed code execution is stopped
From there, I think we can safely conclude that the task switching and the thumbnail are handled entirely by native code. Therefore, there's nothing you can do.
I recently wrote a blogpost in which I discuss the ways I tried to hide data from the application snapshot. (You can read it here: http://corstianboerman.com/trying-to-hide-crucial-data-from-an-application-snapshot/)
The outcome: You just can't hide it.
I am creating a Windows Phone application and i used turnstile animation on all the pages in my application.
The turnstile animation is happening in navigating in and out, but it does not happen when the app is loaded and first page is displayed. The page contains a panorama control with three panorama items.
When the app starts, after splash screen, the page just appear. no turnstile or any other animation happens
Kindly help with this issue.
Any help will be highly appreciated
Thanx for help in advance.
The whole app should be opened with animation. If you have the animation turned on properly on the first page, it will come animated, but not the page - the animated item will be the splashscreen.
When you close the app, it will also be animated.
I have written a windows phone application. When the application starts up it shows the splash screen which is cool and i can change the image. But is there a way to add a loading animation like those dots moving across the screen.
It would be nice if i can add one of those animation in the splash screen. Can it be done. if yes please add in your answers.
As of right now there is no way to replace the loading image that shows up with an animation. Although there are workarounds:
Remove the image all together. Might want to be careful though because Microsoft requires that the application show some kind of feedback to the user within a few seconds of launching the app. Use this only if your app loads really fast.
Display a snap shot of the loading screen as an image so when the app does load you can show an animation with the same background image and it appears that its the same loading screen.
In your case I would recommend using a popup control with a loading animation inside (Option 2). To learn how to create a popup go here. Or if you want a well documented popup I know telerik has there own version as well.
Next place the loading message in a textblock or put your own image and animation inside of the popup. Obviously the easiest animation would be to use the Performance Progress Bar in the silverlight toolkit.
Now what you'll want to do is set the popup opened by default. Whenever your processing is done all you have to do is set the popup visibility to hidden in your C# code.
Some examples of how this is implemented can be found here:
Creating a Splash Screen
Creating an Animated Splash Screen
All About Splash Screens
And here's an example for an XNA game:
Creating a Splash Screen for your XNA game
I tried to find an example for content loading animation (to learn how to implement one in my app). But I couldn't find one.
What I want is: There are 4 listboxes in my mainpage and I want to show a loading animation until the listboxes have completed loading their data.
For example,IMDB application has a loading animation like I want. (You can watch it here http://www.youtube.com/watch?v=AV9BoyGm7Fo)
Any ideas on how to create this?
Thanks
Please refer to these links, as they seem to provide the exact solution to coding this standard loading animation:
Creating a Splash Screen with a progress bar for WP7 applications
High Performance ProgressBar for Windows Phone 7