mirror of
https://github.com/A-Star100/simpliplay-xbox.git
synced 2025-09-18 06:49:52 +00:00
32 lines
781 B
C#
32 lines
781 B
C#
using Windows.ApplicationModel.Activation;
|
|
using Windows.UI.Xaml;
|
|
using Windows.UI.Xaml.Controls;
|
|
|
|
namespace SimpliPlay
|
|
{
|
|
sealed partial class App : Application
|
|
{
|
|
public App()
|
|
{
|
|
this.InitializeComponent();
|
|
}
|
|
|
|
protected override void OnLaunched(LaunchActivatedEventArgs e)
|
|
{
|
|
Frame rootFrame = Window.Current.Content as Frame;
|
|
|
|
if (rootFrame == null)
|
|
{
|
|
rootFrame = new Frame();
|
|
Window.Current.Content = rootFrame;
|
|
}
|
|
|
|
if (rootFrame.Content == null)
|
|
{
|
|
rootFrame.Navigate(typeof(MainPage), e.Arguments);
|
|
}
|
|
Window.Current.Activate();
|
|
}
|
|
}
|
|
}
|