c# - How to add splash screen window correctly in MahApps.Metro application? -


i have added splash screen window mahapps metro application progress ring. splash screen shown , closed before main window shown using following code.

protected async override void onstartup(system.windows.startupeventargs e)     {         //other code          mainwindow mainwindow = new mainwindow();          splashscreen sp = new splashscreen();         sp.show();         await task.delay(3000);         sp.close();          mainwindow.show();          //other code     } 

splash screen shown correctly main window’s rightwindowcommands , leftwindowcommands not working correctly. styles , data binding of windowcommands not working. example, button icon on left not visible , button icon on right visible data binding not working.


Comments