Activating
Application
provides a family of methods that you can override for different activation conditions, covering six specific cases and a catch-all for the rest:
→ OnCachedFileUpdaterActivated
→ OnFileActivated
→ OnFileOpenPickerActivated
→ OnFileSavePickerActivated
→ OnSearchActivated
→ OnShareTargetActivated
→ OnActivated
When an app is activated for one of these six special cases, only the more specific method is invoked. OnActivated
is reserved for any cases not covered by the first six. (These six are singled out mostly for historical reasons.) The IActivatedEventArgs
instance passed to OnActivated
exposes the same Kind
, PreviousExecutionState
, and SplashScreen
properties mentioned in the preceding section. For OnActivated
, however, ...
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.