![]() ![]() The conditional will run the program is no parameters are passed (for debugging) or if the “/s” is passed. if (e.Args.Length = 0 || e.Args.ToLower().StartsWith("/s")) There are three command-line parameters all screensavers need to handle:įor now, let’s just concern ourselves with the /s (Start) option. Here I’m using a method named “ApplicationStartup” Ĭreate a method in the file named ApplicationStartup. This method will be used to parse command-line options and start start the main window of your screensaver. Then, modify the App.xaml to call a specified method on startup. Specifically, I wanted something personal that would show my WBS logo as a marquee across the screen.Ĭode is available in my GitHub repository: WBSScreenSaverįirst create a new WPF application. I took the opportunity to learn how to create a screensaver with. We’ve had 14inches of snow in the last 24 hours. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |