Answered by:
How to handle activation from a toast notification in DirectX apps

Question
-
Dear all,
I'm working on a DirectX game that have toast notification, how to detect my game was launched by clicking on the tile or clicking on the toast ?
I found a doc here on msdn, http://msdn.microsoft.com/en-us/library/windows/apps/hh761468.aspx, but it was not finished.
Thanks.
Thursday, August 9, 2012 3:10 AM
Answers
-
Hi,
How about this sample codes
http://code.msdn.microsoft.com/windowsapps/Toast-notifications-sample-52eeba29
And this document.
http://msdn.microsoft.com/en-US/library/windows/apps/xaml/Hh868218(v=win.10)Best regards,
JesseJesse Jiang [MSFT]
MSDN Community Support | Feedback to us
- Marked as answer by v4vista Wednesday, August 15, 2012 2:13 AM
Monday, August 13, 2012 8:51 AM -
Hi,
I just find out that I can dynamic cast the IActivatedEventArgs in CoreApplicationView's OnActivated event into a LaunchActivatedEventArgs, so I can access the launch string from my toast by the Arguments property.
Regards.
- Marked as answer by v4vista Wednesday, August 15, 2012 2:13 AM
Wednesday, August 15, 2012 2:13 AM
All replies
-
Hi,
How about this sample codes
http://code.msdn.microsoft.com/windowsapps/Toast-notifications-sample-52eeba29
And this document.
http://msdn.microsoft.com/en-US/library/windows/apps/xaml/Hh868218(v=win.10)Best regards,
JesseJesse Jiang [MSFT]
MSDN Community Support | Feedback to us
- Marked as answer by v4vista Wednesday, August 15, 2012 2:13 AM
Monday, August 13, 2012 8:51 AM -
Thanks for the help, but the example is using NavigationEventArgs on xaml's OnNavigatedTo event, my game is a DirectX apps which don't have that event.
And the document is unavailable.
Tuesday, August 14, 2012 4:38 AM -
Hi,
I just find out that I can dynamic cast the IActivatedEventArgs in CoreApplicationView's OnActivated event into a LaunchActivatedEventArgs, so I can access the launch string from my toast by the Arguments property.
Regards.
- Marked as answer by v4vista Wednesday, August 15, 2012 2:13 AM
Wednesday, August 15, 2012 2:13 AM