添加项目文件。

master
Tay 4 hours ago
parent 90cc6d8d67
commit 0336c68b55

@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.11.35312.102
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Txgy.DataStat", "Txgy.DataStat\Txgy.DataStat.csproj", "{83EFBB79-5B1A-4F0B-A115-C7DE131E43D0}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{83EFBB79-5B1A-4F0B-A115-C7DE131E43D0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{83EFBB79-5B1A-4F0B-A115-C7DE131E43D0}.Debug|Any CPU.Build.0 = Debug|Any CPU
{83EFBB79-5B1A-4F0B-A115-C7DE131E43D0}.Release|Any CPU.ActiveCfg = Release|Any CPU
{83EFBB79-5B1A-4F0B-A115-C7DE131E43D0}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {858705E8-1415-44E3-8422-0F5216BCAC92}
EndGlobalSection
EndGlobal

@ -0,0 +1,18 @@
<Application x:Class="Txgy.DataStat.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:Txgy.DataStat"
StartupUri="Views/MainWindow.xaml"
xmlns:hc="https://handyorg.github.io/handycontrol">
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<hc:ThemeResources />
<hc:Theme />
<!-- Other merged dictionaries here -->
</ResourceDictionary.MergedDictionaries>
<!-- Other app resources here -->
</ResourceDictionary>
</Application.Resources>
</Application>

@ -0,0 +1,14 @@
using System.Configuration;
using System.Data;
using System.Windows;
namespace Txgy.DataStat
{
/// <summary>
/// Interaction logic for App.xaml
/// </summary>
public partial class App : Application
{
}
}

@ -0,0 +1,10 @@
using System.Windows;
[assembly: ThemeInfo(
ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
//(used if a resource is not found in the page,
// or application resource dictionaries)
ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
//(used if a resource is not found in the page,
// app, or any theme specific resource dictionaries)
)]

@ -0,0 +1,26 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net8.0-windows</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<UseWPF>true</UseWPF>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.3.2" />
<PackageReference Include="HandyControls" Version="3.5.3" />
<PackageReference Include="LiveChartsCore.SkiaSharpView" Version="2.0.0-rc3.3" />
<PackageReference Include="LiveChartsCore.SkiaSharpView.WPF" Version="2.0.0-rc3.3" />
<PackageReference Include="Microsoft.Xaml.Behaviors.Wpf" Version="1.1.135" />
<PackageReference Include="SkiaSharp" Version="2.88.8" />
<PackageReference Include="SkiaSharp.HarfBuzz" Version="2.88.8" />
</ItemGroup>
<ItemGroup>
<Folder Include="Models\" />
<Folder Include="ValueConverters\" />
</ItemGroup>
</Project>

@ -0,0 +1,15 @@
using CommunityToolkit.Mvvm.ComponentModel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Txgy.DataStat.ViewModels
{
public partial class MainWindowViewModel : ObservableObject
{
[ObservableProperty]
string message = "Hello";
}
}

@ -0,0 +1,16 @@
<Window x:Class="Txgy.DataStat.Views.MainWindow"
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:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:vm="clr-namespace:Txgy.DataStat.ViewModels"
xmlns:local="clr-namespace:Txgy.DataStat"
mc:Ignorable="d"
Title="MainWindow" Height="450" Width="800">
<Window.DataContext>
<vm:MainWindowViewModel />
</Window.DataContext>
<Grid>
<TextBlock Text="{Binding Message}" FontSize="50"/>
</Grid>
</Window>

@ -0,0 +1,24 @@
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
namespace Txgy.DataStat.Views
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
}
}
}
Loading…
Cancel
Save