Skip to content

Commit

Permalink
fix PreferredLaunchViewSize
Browse files Browse the repository at this point in the history
  • Loading branch information
ikas-mc committed Oct 26, 2021
1 parent 7f2577d commit c1c3609
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ContextMenuCustom/ContextMenuCustomApp/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,14 @@ public App()
{
this.InitializeComponent();
this.Suspending += OnSuspending;
//TODO check first run
ApplicationView.PreferredLaunchWindowingMode = ApplicationViewWindowingMode.PreferredLaunchViewSize;
ApplicationView.PreferredLaunchViewSize = new Size(800, 600);
}

protected override void OnLaunched(LaunchActivatedEventArgs e)
{
//TODO check first run
ApplicationView.PreferredLaunchWindowingMode = ApplicationViewWindowingMode.PreferredLaunchViewSize;
ApplicationView.PreferredLaunchViewSize = new Size(800, 600);

//TODO use shell
Frame rootFrame = Window.Current.Content as Frame;
if (rootFrame == null)
Expand Down

0 comments on commit c1c3609

Please sign in to comment.