示例#1
0
 public MainPage()
 {
     InitializeComponent();
     Loaded += (sender, e) => {
         var myGame = new MyGame();
         myGame.Run(SwapChainPanel1);
     };
 }
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            var myGame = new MyGame();

            myGame.Run(SwapChainPanel1);
        }