I'm writing an application for wp7 with several pages, and i want to the splash screen image at the load of every page i have in the app - so the user would figure out he needs to wait a few seconds.
The default splash screen image is fine for me, but i don't know how to do it.
thanks for any help!
You can customize your own splashscreen dont need to use the default
Use the Loading method for the page which should be located on a panel on the left side of Visual Studio's Screen
You can do this by loading the SplashScreen Image on load of every page for some predefined time. And meanwhile other tasks can be done on Background threads (if they are not related to UI).
Also if you want to show a loader to User, you can create a Grid with some Background (semi transparent) and a Progress Bar on it. You can set its Visisbility true before any process which will take time and then hide it after process ends and Application is ready for user..
Related
I am developing a banking application for Windows Phone 8.1 RT. For security reason I need to grey out or show an image in my application when it goes background.
It's like when application is running user presses windows button then press and hold back button at that time application's current page is visible. I need to show a image on that view.
When application is running if user press and hold back button at that time also irrespective of page I need to grey my application or show an image.
I have tried changing the opacity of frame in On suspending event it is not reflecting. I have also tried in Window visibility changed event changing the opacity of Window.Content but it's not working too.
Please help me with some pointers on how to achieve this.
There isn't a good way to do this. The app doesn't suspend until several seconds after it has left the screen, so it is too late for the app to change its UI then. Window.Activated would be closer, but is still too late.
ApplicationView.IsScreenCaptureEnabled will prevent capturing a screenshot of the page either in the app or on the task switcher page, but won't prevent the image from showing at all.
The least bad may be to call Application.Current.Exit to close the application completely when deactivated. This is generally a user unfriendly idea, but it will remove the app from the task switcher one it closes (it will probably show up briefly first though).
You can post feature requests on http://wpdev.uservoice.com
I have an app that uses a Splash Screen when it opens up, and it works fine.
The problem is that I've added a couple of pages that can be accessed via two live tiles, and the point is to let the user istantly load a certain section of the app without having to load the whole MainPage.xaml page, which is quite heavy to load.
These two pages are really simple and load almost istantly, but the app loads the Splash Screen anyways, and I don't like that.
Is there a way to "disable" the splash screen for a specific page?
Via C# or directly from the XAML, I don't know.
I enabled the Splash Screens simply by adding the SplashScreenImage.screen-WXGA.jpg (720p and 1080p as well) to the project main directory.
Thanks! :)
Sergio
No. You can't disable the splash screen. What you can do is to minimize all initialization work your app has to do so that the splash screen is shown for a minimum of time.
Sergio,
You can simulate a splash screen and decide based on how you were activated to show it or not. This sample shows one way to do it: https://code.msdn.microsoft.com/windowsapps/Splash-screen-sample-89c1dc78/
I would show it for the main xaml and others that take a long time to load and dismiss it in code.
I have a MDI form on which I have a menu, Sidebar and somewhat around 50 More controls which makes my application interface very heavy. Also I am loading something around 500 user data which is also loading on my MDI form List box.
However all these process takes a lot of time to load, what I want to do is to load all the stuff just before displaying my MDI form.
Lets say, when I click on login, It should show a progress bar and when progress bar loads to end with all the configuration like "User List Display, Loading of controls and other settings": Then only MDI form should appear.
I have also gone through the DevExpress control:
Splash Screen: http://documentation.devexpress.com/#WindowsForms/CustomDocument10826
Splash Screen video: http://www.youtube.com/watch?v=mFl6P9I6c5A
But this is proprietary.
Is there any control available with winforms so that I can accomplish it.
Like the way we use to see with Visual Studio, Photoshop and other softwares which are very heavily build.
Also, what would be the ideal way of doing this. I have read a lot about, backgroundWorker and Threading. Just need advice on what would be the best way as per you guys. And yes, the smartest way.
I'm developing a C#.NET (4.0) WinForms application. On startup I want to have a splash screen that fills a series of datagridviews on a different form.
At the moment the main form loads that data into the DataGridViews on Form_Load but this makes the Form hang there while this is happening.
So how do I call the method that loads the values to the DataGridView from the splash screen?
I'm rather new to C#.NET, I'm trying to move away from VB.
I would have the splash screen launch the real form where the DataGridViews are, and in that form put the data loading method on its own thread. For a nice and simple and beginner way, use a BackgroundWorker. For more advanced control use Threading.
How to use background worker.
Threading Class Docs
Very good tutorial on threading
EDIT:
As you mentioned in your comment it sounds like you still don't want the form to even appear until its done loading in the data. The easy way to do this is have the main form be hidden from startup, and in the on-load event launch the splash screen, and then when the method that does the data loading returns, set the visibility to true and close the splash screen form.
There are many ways to have a form start hidden. Here is a good forum question with lot of answers on different ways to do it.
I would like to use a regular window for splash screen, so no PNG splash screen but a normal window where I can add some bitmaps on.
What is the best way: to keep in app.xaml the loading of the main screen and put the splash screen in the constructor or somewhere in an event handler?
The splash scren itself is quite easy, just has some labels, a link, a few images and just waits a few seconds before closing, no actions to be done while waiting.
Specifically for a splash screen, it is very important to make use of the functionality introduced in .NET 3.5 for this purpose. If you simply use a vanilla Window it can take quite some time for the WPF stack to initialize, and in the interim the user will not be seeing any feedback for their "launch the app" action.
Of course this does not satisfy the requirements of the question ("use a regular window"), but if it's not acceptable I would recommend using an different technology than WPF entirely because of the problem mentioned above.
I have myself designed my WPF app dynamic splash screen in which there was an animation, dynamic software Number which changed for each and every software, a label which was updated every 1/2 ms to show some random filename in the sofware directory.
To be frank i used this link to create mine
http://www.codeproject.com/Articles/38291/Implement-Splash-Screen-with-WPF
There are other links which i can provide you
http://www.codeproject.com/Articles/116875/WPF-Loading-Splash-Screen
http://www.olsonsoft.com/blogs/stefanolson/post/A-better-WPF-splash-screen.aspx