App.xaml.h 991 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. //
  2. // App.xaml.h
  3. // App 类的声明。
  4. //
  5. #pragma once
  6. #include "App.g.h"
  7. namespace SDLPal
  8. {
  9. /// <summary>
  10. /// 提供特定于应用程序的行为,以补充默认的应用程序类。
  11. /// </summary>
  12. ref class App sealed
  13. {
  14. public:
  15. App();
  16. virtual void OnLaunched(Windows::ApplicationModel::Activation::LaunchActivatedEventArgs^ e) override;
  17. void SetMainPage(Windows::UI::Xaml::Controls::Page^ page);
  18. protected:
  19. virtual void OnActivated(Windows::ApplicationModel::Activation::IActivatedEventArgs^ args) override;
  20. private:
  21. Windows::UI::Xaml::Media::Animation::TransitionCollection^ _transitions;
  22. Windows::Foundation::EventRegistrationToken _firstNavigatedToken;
  23. Windows::UI::Xaml::Controls::Page^ _main_page;
  24. void OnSuspending(Platform::Object^ sender, Windows::ApplicationModel::SuspendingEventArgs^ e);
  25. void RootFrame_FirstNavigated(Platform::Object^ sender, Windows::UI::Xaml::Navigation::NavigationEventArgs^ e);
  26. };
  27. }
  28. extern HANDLE g_eventHandle;