LaunchActivatedEventArgs
The LaunchActivatedEventArgs
instance passed to OnLaunched
exposes the following properties:
→ SplashScreen—Exposes the location of the image inside the splash screen and a separate Dismissed
event for when it goes away. This is helpful for providing your own extended splash screen that mimics the real one, which is highly recommended.
→ PreviousExecutionState—Reveals what the app was previously doing with a value from an ApplicationExecutionState
enumeration. This is critical information needed for you to handle the launch correctly. Although this enumeration contains the three expected values of NotRunning
, Running
, and Suspended
, it also includes two variations of NotRunning
: Terminated
and ClosedByUser
.
→ Arguments ...
Get Universal Windows® Apps with XAML and C# Unleashed now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.