Animated splash screen in C# -


this question has answer here:

how can have animated splash screen in c#

but still make splash (fixed)

private void splashscreen() {     application.run(new splash()); } 

a few steps wpf:

add new window project , call splash.

in app.xaml remove startupwindow, , register event startup.

in app.xaml.cs add following code.

    private void app_onstartup(object sender, startupeventargs e)     {         var splash = new splash();         var mainwindow = new mainwindow();         splash.showdialog();         mainwindow.show();     } 

now first window splash opened , in window can animations. after window closed (by user or using timer , calling close method.) mainwindow open.

a few notes have set various properties in splash window.

topmost = true startuplocation = centerscreen windowstyle = none

play around window desired effects.


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -