Skip to content

Commit

Permalink
Update Templates
Browse files Browse the repository at this point in the history
  • Loading branch information
ghost1372 committed Nov 30, 2024
1 parent 426aa7f commit 04d182e
Show file tree
Hide file tree
Showing 12 changed files with 24 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<PackageManifest Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011" xmlns:d="http://schemas.microsoft.com/developer/vsx-schema-design/2011">
<Metadata>
<Identity Id="DevWinUI_Template.18eb89b1-bd1f-4e22-9196-6ea05b8ca61d" Version="11.0.0" Language="en-US" Publisher="Mahdi Hosseini" />
<Identity Id="DevWinUI_Template.18eb89b1-bd1f-4e22-9196-6ea05b8ca61d" Version="11.0.1" Language="en-US" Publisher="Mahdi Hosseini" />
<DisplayName>DevWinUI Templates for WinUI</DisplayName>
<Description xml:space="preserve">DevWinUI Project Template, help you quickly create a new WinUI 3 App with DevWinUI and MVVM Packages. We prepare your project with the following features: NavigationView, Custom TitleBar, HomeLandingPage and Settings Page (with Theme settings).
We also always use the latest version of WindowsAppSDK.
Expand Down
1 change: 1 addition & 0 deletions VSIX/DevWinUI_Template/WinUIApp-Blank-UnitTest/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ protected override void OnLaunched(LaunchActivatedEventArgs args)
MainWindow.Content = rootFrame = new Frame();
}

MainWindow.SystemBackdrop = new Microsoft.UI.Xaml.Media.MicaBackdrop();
rootFrame.Navigate(typeof(MainPage));
MainWindow.Activate();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,18 @@
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="using:$safeprojectname$"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"
mc:Ignorable="d">
<Grid RowDefinitions="Auto, *">
<TitleBar x:Name="AppTitleBar"
Title="$safeprojectname$"
IconSource="{dev:BitmapIconSource Source=ms-appx:///Assets/AppIcon.png}"
Subtitle="1.0.0" />
Subtitle="1.0.0">
<TitleBar.IconSource>
<BitmapIconSource ShowAsMonochrome="False"
UriSource="ms-appx:///Assets/AppIcon.png" />
</TitleBar.IconSource>
</TitleBar>
<StackPanel Grid.Row="1">

</StackPanel>
</Grid>
</Page>
Expand Down
3 changes: 1 addition & 2 deletions VSIX/DevWinUI_Template/WinUIApp-Blank/App.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<XamlControlsResources xmlns="using:Microsoft.UI.Xaml.Controls" />
$DevWinUI.Controls$$AppDicColors$$AppDicFonts$$AppDicConverters$$AppDicStyles$
<XamlControlsResources xmlns="using:Microsoft.UI.Xaml.Controls" /> $DevWinUI.Controls$$AppDicColors$$AppDicFonts$$AppDicConverters$$AppDicStyles$
</ResourceDictionary.MergedDictionaries>
<!-- Other app resources here -->
</ResourceDictionary>
Expand Down
1 change: 1 addition & 0 deletions VSIX/DevWinUI_Template/WinUIApp-Blank/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ protected override void OnLaunched(LaunchActivatedEventArgs args)
MainWindow.Content = rootFrame = new Frame();
}

MainWindow.SystemBackdrop = new Microsoft.UI.Xaml.Media.MicaBackdrop();
rootFrame.Navigate(typeof(MainPage));
MainWindow.Activate();
}
Expand Down
11 changes: 7 additions & 4 deletions VSIX/DevWinUI_Template/WinUIApp-Blank/Views/MainPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,18 @@
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="using:$safeprojectname$"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"
mc:Ignorable="d">
<Grid RowDefinitions="Auto, *">
<TitleBar x:Name="AppTitleBar"
Title="$safeprojectname$"
IconSource="{dev:BitmapIconSource Source=ms-appx:///Assets/AppIcon.png}"
Subtitle="1.0.0" />
Subtitle="1.0.0">
<TitleBar.IconSource>
<BitmapIconSource ShowAsMonochrome="False"
UriSource="ms-appx:///Assets/AppIcon.png" />
</TitleBar.IconSource>
</TitleBar>
<StackPanel Grid.Row="1">

</StackPanel>
</Grid>
</Page>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

namespace $safeprojectname$.Common;


[GenerateAutoSaveOnChange]
public partial class AppConfig : NotifiyingJsonSettings, IVersionable
{
Expand Down
1 change: 1 addition & 0 deletions VSIX/DevWinUI_Template/WinUIApp-MVVM/Common/AppConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

namespace $safeprojectname$.Common;


[GenerateAutoSaveOnChange]
public partial class AppConfig : NotifiyingJsonSettings, IVersionable
{
Expand Down
1 change: 1 addition & 0 deletions VSIX/DevWinUI_Template/WinUIApp-MVVM/Views/MainPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:dev="using:DevWinUI"
xmlns:local="using:$safeprojectname$"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

namespace $safeprojectname$.Common;


[GenerateAutoSaveOnChange]
public partial class AppConfig : NotifiyingJsonSettings, IVersionable
{
Expand Down
1 change: 1 addition & 0 deletions VSIX/DevWinUI_Template/WinUIApp/Common/AppConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

namespace $safeprojectname$.Common;


[GenerateAutoSaveOnChange]
public partial class AppConfig : NotifiyingJsonSettings, IVersionable
{
Expand Down
1 change: 1 addition & 0 deletions VSIX/DevWinUI_Template/WinUIApp/Views/MainPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:dev="using:DevWinUI"
xmlns:local="using:$safeprojectname$"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d">
Expand Down

0 comments on commit 04d182e

Please sign in to comment.