Skip to content

Commit 0042431

Browse files
committed
Update the UWP app main project name
1 parent 97aba78 commit 0042431

File tree

14 files changed

+62
-26
lines changed

14 files changed

+62
-26
lines changed

TrayIconFlyout.slnx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@
1818
<Project Path="samples/TrayIconFlyout.Uwp.Sample.Packaging/TrayIconFlyout.Uwp.Sample.Packaging.wapproj" Type="c7167f0d-bc9f-4e6e-afe1-012c56b48db5" Id="8f9f53a2-0cda-4bb2-b6e9-060ce608dfb2">
1919
<Deploy />
2020
</Project>
21-
<Project Path="samples/TrayIconFlyout.Uwp.Sample.TrayHost/TrayIconFlyout.Uwp.Sample.TrayHost.csproj">
22-
<Platform Solution="*|ARM64" Project="arm64" />
21+
<Project Path="samples/TrayIconFlyout.Uwp.Sample.App/TrayIconFlyout.Uwp.Sample.App.csproj">
22+
<Platform Solution="*|ARM64" Project="ARM64" />
2323
<Platform Solution="*|x64" Project="x64" />
2424
<Platform Solution="*|x86" Project="x86" />
2525
<Deploy />
2626
</Project>
27-
<Project Path="samples/TrayIconFlyout.Uwp.Sample.SecondaryApp/TrayIconFlyout.Uwp.Sample.SecondaryApp.csproj" Id="669afa0c-a670-4ea7-8e55-cf575002b521">
28-
<Platform Solution="*|ARM64" Project="arm64" />
27+
<Project Path="samples/TrayIconFlyout.Uwp.Sample.TrayHost/TrayIconFlyout.Uwp.Sample.TrayHost.csproj">
28+
<Platform Solution="*|ARM64" Project="ARM64" />
2929
<Platform Solution="*|x64" Project="x64" />
3030
<Platform Solution="*|x86" Project="x86" />
3131
<Deploy />
File renamed without changes.

samples/TrayIconFlyout.Uwp.Sample.SecondaryApp/App2.xaml.cs renamed to samples/TrayIconFlyout.Uwp.Sample.App/App2.xaml.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
using System;
55
using Windows.ApplicationModel;
66
using Windows.ApplicationModel.Activation;
7+
using Windows.ApplicationModel.Core;
78
using Windows.UI.Xaml;
89
using Windows.UI.Xaml.Controls;
910
using Windows.UI.Xaml.Navigation;
@@ -41,6 +42,8 @@ protected override void OnActivated(IActivatedEventArgs args)
4142

4243
if (rootFrame.Content == null)
4344
{
45+
CoreApplication.GetCurrentView().TitleBar.ExtendViewIntoTitleBar = true;
46+
4447
rootFrame.Navigate(typeof(MainPage), args.As<ProtocolActivatedEventArgs>().Data);
4548
}
4649

samples/TrayIconFlyout.Uwp.Sample.SecondaryApp/MainPage.xaml renamed to samples/TrayIconFlyout.Uwp.Sample.App/MainPage.xaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
66
xmlns:local="using:U5BFA.Libraries"
77
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
8-
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"
8+
xmlns:muxc="using:Microsoft.UI.Xaml.Controls"
9+
muxc:BackdropMaterial.ApplyToRootOrPageBackground="True"
910
mc:Ignorable="d">
1011

1112
<Grid>

samples/TrayIconFlyout.Uwp.Sample.SecondaryApp/MainPage.xaml.cs renamed to samples/TrayIconFlyout.Uwp.Sample.App/MainPage.xaml.cs

File renamed without changes.

samples/TrayIconFlyout.Uwp.Sample.SecondaryApp/Properties/launchSettings.json renamed to samples/TrayIconFlyout.Uwp.Sample.App/Properties/launchSettings.json

File renamed without changes.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<UserControl
2+
x:Class="U5BFA.Libraries.RootView"
3+
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
4+
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
5+
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
6+
xmlns:local="using:U5BFA.Libraries"
7+
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
8+
mc:Ignorable="d">
9+
<UserControl.DataContext>
10+
<local:RootViewModel x:Name="ViewModel" />
11+
</UserControl.DataContext>
12+
13+
<Grid />
14+
</UserControl>
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// Copyright (c) 0x5BFA. All rights reserved.
2+
// Licensed under the MIT license.
3+
4+
using Windows.UI.Xaml.Controls;
5+
6+
namespace U5BFA.Libraries
7+
{
8+
public sealed partial class RootView : UserControl
9+
{
10+
public RootView()
11+
{
12+
InitializeComponent();
13+
}
14+
}
15+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// Copyright (c) 0x5BFA. All rights reserved.
2+
// Licensed under the MIT license.
3+
4+
using CommunityToolkit.Mvvm.ComponentModel;
5+
6+
namespace U5BFA.Libraries
7+
{
8+
internal partial class RootViewModel : ObservableObject
9+
{
10+
internal RootViewModel()
11+
{
12+
}
13+
}
14+
}

samples/TrayIconFlyout.Uwp.Sample.SecondaryApp/TrayIconFlyout.Uwp.Sample.SecondaryApp.csproj renamed to samples/TrayIconFlyout.Uwp.Sample.App/TrayIconFlyout.Uwp.Sample.App.csproj

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
44

@@ -26,13 +26,15 @@
2626
</PropertyGroup>
2727

2828
<ItemGroup>
29+
<Manifest Include="$(ApplicationManifest)" />
2930
<Page Remove="App2.xaml" />
3031
<ApplicationDefinition Include="App2.xaml" />
3132
</ItemGroup>
3233

3334
<ItemGroup>
34-
<PackageReference Include="Microsoft.Windows.CsWin32" Version="0.3.183" PrivateAssets="all" />
3535
<PackageReference Include="Microsoft.UI.Xaml" Version="2.8.7" />
36+
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.4.0" />
37+
<PackageReference Include="CommunityToolkit.Uwp.Controls.SettingsControls" Version="8.2.250402" />
3638
</ItemGroup>
3739

3840
</Project>

0 commit comments

Comments
 (0)