Skip to content

Commit

Permalink
fix: Remove explicit type in Solution template App.xaml.cs
Browse files Browse the repository at this point in the history
- In case Uno Platform solution is created in a #nullable context, the app is not buildable because as keyword makes the Frame nullable. Using var this issue is avoided and automatically becomes Frame? in nullable.
  • Loading branch information
MartinZikmund committed Jan 17, 2021
1 parent 10528e1 commit 26170c3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ protected override void OnLaunched(LaunchActivatedEventArgs e)
var window = Windows.UI.Xaml.Window.Current;
#endif

Frame rootFrame = window.Content as Frame;
var rootFrame = window.Content as Frame;

// Do not repeat app initialization when the Window already has content,
// just ensure that the window is active
Expand Down

0 comments on commit 26170c3

Please sign in to comment.