Skip to content

Commit

Permalink
Merge pull request #8223 from unoplatform/dev/mazi/8222-net-6-solutio…
Browse files Browse the repository at this point in the history
…n-template-does-not-wrap-`xamlcontrolsresources`

refactor: Improve default App.xaml template
  • Loading branch information
mergify[bot] authored Mar 4, 2022
2 parents 1d0745f + cade032 commit 67f224d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
12 changes: 9 additions & 3 deletions src/SolutionTemplate/UnoSolutionTemplate.net6/Shared/App.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,14 @@
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:$ext_safeprojectname$">

<Application.Resources>
<XamlControlsResources xmlns="using:Microsoft.UI.Xaml.Controls" />
</Application.Resources>
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<XamlControlsResources xmlns="using:Microsoft.UI.Xaml.Controls" />
<!-- Add resource dictionaries here -->
</ResourceDictionary.MergedDictionaries>
<!-- Add resources here -->
</ResourceDictionary>
</Application.Resources>

</Application>
3 changes: 2 additions & 1 deletion src/SolutionTemplate/UnoSolutionTemplate/Shared/App.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<XamlControlsResources xmlns="using:Microsoft.UI.Xaml.Controls" />
<!-- Place resources here -->
<!-- Add resource dictionaries here -->
</ResourceDictionary.MergedDictionaries>
<!-- Add resources here -->
</ResourceDictionary>
</Application.Resources>

Expand Down

0 comments on commit 67f224d

Please sign in to comment.