-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update the templates to use file-scoped namespaces
- Loading branch information
1 parent
0ef89d4
commit 35e6fcc
Showing
2 changed files
with
35 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 13 additions & 14 deletions
27
AIDevGallery/ProjectGenerator/Template/MainWindow.xaml.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,20 @@ | ||
using Microsoft.UI.Xaml; | ||
|
||
namespace $safeprojectname$ | ||
namespace $safeprojectname$; | ||
|
||
public sealed partial class MainWindow : Window | ||
{ | ||
public sealed partial class MainWindow : Window | ||
public MainWindow() | ||
{ | ||
public MainWindow() | ||
this.InitializeComponent(); | ||
this.RootFrame.Loaded += (sender, args) => | ||
{ | ||
this.InitializeComponent(); | ||
this.RootFrame.Loaded += (sender, args) => | ||
{ | ||
RootFrame.Navigate(typeof($MainSamplePage$)); | ||
}; | ||
} | ||
RootFrame.Navigate(typeof($MainSamplePage$)); | ||
}; | ||
} | ||
|
||
internal void ModelLoaded() | ||
{ | ||
ProgressRingGrid.Visibility = Visibility.Collapsed; | ||
} | ||
internal void ModelLoaded() | ||
{ | ||
ProgressRingGrid.Visibility = Visibility.Collapsed; | ||
} | ||
} | ||
} |