返回提交历史
Added
XFENewsApplication.sln
+42
-0
Added
XFENewsApplication/App.xaml
+16
-0
Added
XFENewsApplication/App.xaml.cs
+50
-0
Added
XFENewsApplication/Assets/LockScreenLogo.scale-200.png
+0
-0
Added
XFENewsApplication/Assets/SplashScreen.scale-200.png
+0
-0
Added
XFENewsApplication/Assets/Square150x150Logo.scale-200.png
+0
-0
Added
XFENewsApplication/Assets/Square44x44Logo.scale-200.png
+0
-0
Added
XFENewsApplication/Assets/Square44x44Logo.targetsize-24_altform-unplated.png
+0
-0
Added
XFENewsApplication/Assets/StoreLogo.png
+0
-0
Added
XFENewsApplication/Assets/Wide310x150Logo.scale-200.png
+0
-0
Added
XFENewsApplication/MainWindow.xaml
+14
-0
Added
XFENewsApplication/MainWindow.xaml.cs
+20
-0
Added
XFENewsApplication/Package.appxmanifest
+51
-0
Added
XFENewsApplication/Properties/launchSettings.json
+10
-0
Added
XFENewsApplication/XFENewsApplication.csproj
+74
-0
Added
XFENewsApplication/app.manifest
+19
-0
XFEstudio/XFENewsApplication
添加项目文件。
9f996fa
代码差异
16 个文件
+296
-0
@@ -0,0 +1,42 @@
1
Microsoft Visual Studio Solution File, Format Version 12.00
2
# Visual Studio Version 17
3
VisualStudioVersion = 17.14.35821.62
4
MinimumVisualStudioVersion = 10.0.40219.1
5
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "XFENewsApplication", "XFENewsApplication\XFENewsApplication.csproj", "{A8E05536-352A-43C6-853E-836AC45DDC16}"
6
EndProject
7
Global
8
GlobalSection(SolutionConfigurationPlatforms) = preSolution
9
Debug|ARM64 = Debug|ARM64
10
Debug|x64 = Debug|x64
11
Debug|x86 = Debug|x86
12
Release|ARM64 = Release|ARM64
13
Release|x64 = Release|x64
14
Release|x86 = Release|x86
15
EndGlobalSection
16
GlobalSection(ProjectConfigurationPlatforms) = postSolution
17
{A8E05536-352A-43C6-853E-836AC45DDC16}.Debug|ARM64.ActiveCfg = Debug|ARM64
18
{A8E05536-352A-43C6-853E-836AC45DDC16}.Debug|ARM64.Build.0 = Debug|ARM64
19
{A8E05536-352A-43C6-853E-836AC45DDC16}.Debug|ARM64.Deploy.0 = Debug|ARM64
20
{A8E05536-352A-43C6-853E-836AC45DDC16}.Debug|x64.ActiveCfg = Debug|x64
21
{A8E05536-352A-43C6-853E-836AC45DDC16}.Debug|x64.Build.0 = Debug|x64
22
{A8E05536-352A-43C6-853E-836AC45DDC16}.Debug|x64.Deploy.0 = Debug|x64
23
{A8E05536-352A-43C6-853E-836AC45DDC16}.Debug|x86.ActiveCfg = Debug|x86
24
{A8E05536-352A-43C6-853E-836AC45DDC16}.Debug|x86.Build.0 = Debug|x86
25
{A8E05536-352A-43C6-853E-836AC45DDC16}.Debug|x86.Deploy.0 = Debug|x86
26
{A8E05536-352A-43C6-853E-836AC45DDC16}.Release|ARM64.ActiveCfg = Release|ARM64
27
{A8E05536-352A-43C6-853E-836AC45DDC16}.Release|ARM64.Build.0 = Release|ARM64
28
{A8E05536-352A-43C6-853E-836AC45DDC16}.Release|ARM64.Deploy.0 = Release|ARM64
29
{A8E05536-352A-43C6-853E-836AC45DDC16}.Release|x64.ActiveCfg = Release|x64
30
{A8E05536-352A-43C6-853E-836AC45DDC16}.Release|x64.Build.0 = Release|x64
31
{A8E05536-352A-43C6-853E-836AC45DDC16}.Release|x64.Deploy.0 = Release|x64
32
{A8E05536-352A-43C6-853E-836AC45DDC16}.Release|x86.ActiveCfg = Release|x86
33
{A8E05536-352A-43C6-853E-836AC45DDC16}.Release|x86.Build.0 = Release|x86
34
{A8E05536-352A-43C6-853E-836AC45DDC16}.Release|x86.Deploy.0 = Release|x86
35
EndGlobalSection
36
GlobalSection(SolutionProperties) = preSolution
37
HideSolutionNode = FALSE
38
EndGlobalSection
39
GlobalSection(ExtensibilityGlobals) = postSolution
40
SolutionGuid = {364B32EA-21DB-41DD-8AEA-09C18CDCE24B}
41
EndGlobalSection
42
EndGlobal
@@ -0,0 +1,16 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
<Application
3
x:Class="XFENewsApplication.App"
4
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
5
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
6
xmlns:local="using:XFENewsApplication">
7
<Application.Resources>
8
<ResourceDictionary>
9
<ResourceDictionary.MergedDictionaries>
10
<XamlControlsResources xmlns="using:Microsoft.UI.Xaml.Controls" />
11
<!-- Other merged dictionaries here -->
12
</ResourceDictionary.MergedDictionaries>
13
<!-- Other app resources here -->
14
</ResourceDictionary>
15
</Application.Resources>
16
</Application>
@@ -0,0 +1,50 @@
1
using System;
2
using System.Collections.Generic;
3
using System.IO;
4
using System.Linq;
5
using System.Runtime.InteropServices.WindowsRuntime;
6
using Microsoft.UI.Xaml;
7
using Microsoft.UI.Xaml.Controls;
8
using Microsoft.UI.Xaml.Controls.Primitives;
9
using Microsoft.UI.Xaml.Data;
10
using Microsoft.UI.Xaml.Input;
11
using Microsoft.UI.Xaml.Media;
12
using Microsoft.UI.Xaml.Navigation;
13
using Microsoft.UI.Xaml.Shapes;
14
using Windows.ApplicationModel;
15
using Windows.ApplicationModel.Activation;
16
using Windows.Foundation;
17
using Windows.Foundation.Collections;
18
19
// To learn more about WinUI, the WinUI project structure,
20
// and more about our project templates, see: http://aka.ms/winui-project-info.
21
22
namespace XFENewsApplication
23
{
24
/// <summary>
25
/// Provides application-specific behavior to supplement the default Application class.
26
/// </summary>
27
public partial class App : Application
28
{
29
/// <summary>
30
/// Initializes the singleton application object. This is the first line of authored code
31
/// executed, and as such is the logical equivalent of main() or WinMain().
32
/// </summary>
33
public App()
34
{
35
this.InitializeComponent();
36
}
37
38
/// <summary>
39
/// Invoked when the application is launched.
40
/// </summary>
41
/// <param name="args">Details about the launch request and process.</param>
42
protected override void OnLaunched(Microsoft.UI.Xaml.LaunchActivatedEventArgs args)
43
{
44
m_window = new MainWindow();
45
m_window.Activate();
46
}
47
48
private Window? m_window;
49
}
50
}
二进制文件已变更,无法进行逐行预览。
二进制文件已变更,无法进行逐行预览。
二进制文件已变更,无法进行逐行预览。
二进制文件已变更,无法进行逐行预览。
二进制文件已变更,无法进行逐行预览。
二进制文件已变更,无法进行逐行预览。
二进制文件已变更,无法进行逐行预览。
@@ -0,0 +1,14 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
<Window
3
x:Class="XFENewsApplication.MainWindow"
4
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
5
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
6
xmlns:local="using:XFENewsApplication"
7
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
8
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
9
mc:Ignorable="d"
10
Title="XFENewsApplication">
11
<Window.SystemBackdrop>
12
<MicaBackdrop/>
13
</Window.SystemBackdrop>
14
</Window>
@@ -0,0 +1,20 @@
1
using Microsoft.UI.Xaml;
2
using Windows.UI.ViewManagement;
3
4
namespace XFENewsApplication;
5
6
/// <summary>
7
/// 主窗体
8
/// </summary>
9
public sealed partial class MainWindow : Window
10
{
11
public static UISettings UISettings { get; set; } = new UISettings();
12
public MainWindow()
13
{
14
this.InitializeComponent();
15
ExtendsContentIntoTitleBar = true;
16
AppWindow.SetIcon(Path.Combine(AppContext.BaseDirectory, "Assets/Icons/EditorIcon.ico"));
17
AppWindow.TitleBar.PreferredHeightOption = Microsoft.UI.Windowing.TitleBarHeightOption.Tall;
18
UISettings.ColorValuesChanged += (_, _) => DispatcherQueue.TryEnqueue(() => AppThemeHelper.ChangeTheme(SystemProfile.Theme));
19
}
20
}
@@ -0,0 +1,51 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
3
<Package
4
xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10"
5
xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest"
6
xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10"
7
xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"
8
IgnorableNamespaces="uap rescap">
9
10
<Identity
11
Name="b01150b1-2e3c-41f1-979f-c2d959539750"
12
Publisher="CN=XFEstudio"
13
Version="1.0.0.0" />
14
15
<mp:PhoneIdentity PhoneProductId="b01150b1-2e3c-41f1-979f-c2d959539750" PhonePublisherId="00000000-0000-0000-0000-000000000000"/>
16
17
<Properties>
18
<DisplayName>XFENewsApplication</DisplayName>
19
<PublisherDisplayName>XFEstudio</PublisherDisplayName>
20
<Logo>Assets\StoreLogo.png</Logo>
21
</Properties>
22
23
<Dependencies>
24
<TargetDeviceFamily Name="Windows.Universal" MinVersion="10.0.17763.0" MaxVersionTested="10.0.19041.0" />
25
<TargetDeviceFamily Name="Windows.Desktop" MinVersion="10.0.17763.0" MaxVersionTested="10.0.19041.0" />
26
</Dependencies>
27
28
<Resources>
29
<Resource Language="x-generate"/>
30
</Resources>
31
32
<Applications>
33
<Application Id="App"
34
Executable="$targetnametoken$.exe"
35
EntryPoint="$targetentrypoint$">
36
<uap:VisualElements
37
DisplayName="XFENewsApplication"
38
Description="XFENewsApplication"
39
BackgroundColor="transparent"
40
Square150x150Logo="Assets\Square150x150Logo.png"
41
Square44x44Logo="Assets\Square44x44Logo.png">
42
<uap:DefaultTile Wide310x150Logo="Assets\Wide310x150Logo.png" />
43
<uap:SplashScreen Image="Assets\SplashScreen.png" />
44
</uap:VisualElements>
45
</Application>
46
</Applications>
47
48
<Capabilities>
49
<rescap:Capability Name="runFullTrust" />
50
</Capabilities>
51
</Package>
@@ -0,0 +1,10 @@
1
{
2
"profiles": {
3
"XFENewsApplication (Package)": {
4
"commandName": "MsixPackage"
5
},
6
"XFENewsApplication (Unpackaged)": {
7
"commandName": "Project"
8
}
9
}
10
}
@@ -0,0 +1,74 @@
1
<Project Sdk="Microsoft.NET.Sdk">
2
<PropertyGroup>
3
<OutputType>WinExe</OutputType>
4
<TargetFramework>net8.0-windows10.0.19041.0</TargetFramework>
5
<TargetPlatformMinVersion>10.0.17763.0</TargetPlatformMinVersion>
6
<RootNamespace>XFENewsApplication</RootNamespace>
7
<ApplicationManifest>app.manifest</ApplicationManifest>
8
<Platforms>x86;x64;ARM64</Platforms>
9
<RuntimeIdentifiers>win-x86;win-x64;win-arm64</RuntimeIdentifiers>
10
<PublishProfile>win-$(Platform).pubxml</PublishProfile>
11
<UseWinUI>true</UseWinUI>
12
<EnableMsixTooling>true</EnableMsixTooling>
13
<Nullable>enable</Nullable>
14
</PropertyGroup>
15
16
<ItemGroup>
17
<Content Include="Assets\SplashScreen.scale-200.png" />
18
<Content Include="Assets\LockScreenLogo.scale-200.png" />
19
<Content Include="Assets\Square150x150Logo.scale-200.png" />
20
<Content Include="Assets\Square44x44Logo.scale-200.png" />
21
<Content Include="Assets\Square44x44Logo.targetsize-24_altform-unplated.png" />
22
<Content Include="Assets\StoreLogo.png" />
23
<Content Include="Assets\Wide310x150Logo.scale-200.png" />
24
</ItemGroup>
25
26
<ItemGroup>
27
<Manifest Include="$(ApplicationManifest)" />
28
</ItemGroup>
29
30
<!--
31
Defining the "Msix" ProjectCapability here allows the Single-project MSIX Packaging
32
Tools extension to be activated for this project even if the Windows App SDK Nuget
33
package has not yet been restored.
34
-->
35
<ItemGroup Condition="'$(DisableMsixProjectCapabilityAddedByProject)'!='true' and '$(EnableMsixTooling)'=='true'">
36
<ProjectCapability Include="Msix" />
37
</ItemGroup>
38
<ItemGroup>
39
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.4.0" />
40
<PackageReference Include="HtmlAgilityPack" Version="1.12.0" />
41
<PackageReference Include="CommunityToolkit.WinUI.Controls.SettingsControls" Version="8.2.250402" />
42
<PackageReference Include="System.Private.Uri" Version="4.3.2" />
43
<PackageReference Include="XFEExtension.NetCore" Version="3.3.1" />
44
<PackageReference Include="XFEExtension.NetCore.AutoConfig" Version="2.0.5" />
45
<PackageReference Include="XFEExtension.NetCore.AutoPath" Version="1.0.1" />
46
<PackageReference Include="XFEExtension.NetCore.TodoHighLight" Version="1.0.0" />
47
<PackageReference Include="Microsoft.Windows.SDK.BuildTools" Version="10.0.26100.1742" />
48
<PackageReference Include="Microsoft.WindowsAppSDK" Version="1.7.250310001" />
49
</ItemGroup>
50
<ItemGroup>
51
<Using Include="XFENewsApplication.ViewModels" />
52
</ItemGroup>
53
<ItemGroup>
54
<Folder Include="Model\" />
55
</ItemGroup>
56
57
<!--
58
Defining the "HasPackageAndPublishMenuAddedByProject" property here allows the Solution
59
Explorer "Package and Publish" context menu entry to be enabled for this project even if
60
the Windows App SDK Nuget package has not yet been restored.
61
-->
62
<PropertyGroup Condition="'$(DisableHasPackageAndPublishMenuAddedByProject)'!='true' and '$(EnableMsixTooling)'=='true'">
63
<HasPackageAndPublishMenu>true</HasPackageAndPublishMenu>
64
</PropertyGroup>
65
66
<!-- Publish Properties -->
67
<PropertyGroup>
68
<PublishReadyToRun Condition="'$(Configuration)' == 'Debug'">False</PublishReadyToRun>
69
<PublishReadyToRun Condition="'$(Configuration)' != 'Debug'">True</PublishReadyToRun>
70
<PublishTrimmed Condition="'$(Configuration)' == 'Debug'">False</PublishTrimmed>
71
<PublishTrimmed Condition="'$(Configuration)' != 'Debug'">True</PublishTrimmed>
72
<ImplicitUsings>enable</ImplicitUsings>
73
</PropertyGroup>
74
</Project>
@@ -0,0 +1,19 @@
1
<?xml version="1.0" encoding="utf-8"?>
2
<assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1">
3
<assemblyIdentity version="1.0.0.0" name="XFENewsApplication.app"/>
4
5
<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
6
<application>
7
<!-- The ID below informs the system that this application is compatible with OS features first introduced in Windows 10.
8
It is necessary to support features in unpackaged applications, for example the custom titlebar implementation.
9
For more info see https://docs.microsoft.com/windows/apps/windows-app-sdk/use-windows-app-sdk-run-time#declare-os-compatibility-in-your-application-manifest -->
10
<supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}" />
11
</application>
12
</compatibility>
13
14
<application xmlns="urn:schemas-microsoft-com:asm.v3">
15
<windowsSettings>
16
<dpiAwareness xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">PerMonitorV2</dpiAwareness>
17
</windowsSettings>
18
</application>
19
</assembly>