XFEstudio/MyFirstRespo
添加项目文件。
29045a0
代码差异
12 个文件
+209
-0
@@ -0,0 +1,25 @@
1
2
Microsoft Visual Studio Solution File, Format Version 12.00
3
# Visual Studio Version 17
4
VisualStudioVersion = 17.11.35017.193
5
MinimumVisualStudioVersion = 10.0.40219.1
6
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FileSystemWatcher", "FileSystemWatcher\FileSystemWatcher.csproj", "{7A065B44-8D37-4415-A97F-9F7C8F8E9567}"
7
EndProject
8
Global
9
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10
Debug|Any CPU = Debug|Any CPU
11
Release|Any CPU = Release|Any CPU
12
EndGlobalSection
13
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14
{7A065B44-8D37-4415-A97F-9F7C8F8E9567}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15
{7A065B44-8D37-4415-A97F-9F7C8F8E9567}.Debug|Any CPU.Build.0 = Debug|Any CPU
16
{7A065B44-8D37-4415-A97F-9F7C8F8E9567}.Release|Any CPU.ActiveCfg = Release|Any CPU
17
{7A065B44-8D37-4415-A97F-9F7C8F8E9567}.Release|Any CPU.Build.0 = Release|Any CPU
18
EndGlobalSection
19
GlobalSection(SolutionProperties) = preSolution
20
HideSolutionNode = FALSE
21
EndGlobalSection
22
GlobalSection(ExtensibilityGlobals) = postSolution
23
SolutionGuid = {9EEA9668-487B-420D-A957-97140D8FBCF8}
24
EndGlobalSection
25
EndGlobal
@@ -0,0 +1,9 @@
1
<Application x:Class="FileSystemWatcher.App"
2
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4
xmlns:local="clr-namespace:FileSystemWatcher"
5
StartupUri="MainWindow.xaml">
6
<Application.Resources>
7
8
</Application.Resources>
9
</Application>
@@ -0,0 +1,14 @@
1
using System.Configuration;
2
using System.Data;
3
using System.Windows;
4
5
namespace FileSystemWatcher
6
{
7
/// <summary>
8
/// Interaction logic for App.xaml
9
/// </summary>
10
public partial class App : Application
11
{
12
}
13
14
}
@@ -0,0 +1,10 @@
1
using System.Windows;
2
3
[assembly: ThemeInfo(
4
ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
5
//(used if a resource is not found in the page,
6
// or application resource dictionaries)
7
ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
8
//(used if a resource is not found in the page,
9
// app, or any theme specific resource dictionaries)
10
)]
@@ -0,0 +1,29 @@
1
<Project Sdk="Microsoft.NET.Sdk">
2
3
<PropertyGroup>
4
<OutputType>WinExe</OutputType>
5
<TargetFramework>net8.0-windows</TargetFramework>
6
<Nullable>enable</Nullable>
7
<ImplicitUsings>enable</ImplicitUsings>
8
<UseWPF>true</UseWPF>
9
</PropertyGroup>
10
11
<ItemGroup>
12
<None Remove="Resources\Image\close.png" />
13
<None Remove="Resources\Image\min.png" />
14
</ItemGroup>
15
16
<ItemGroup>
17
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.2.2" />
18
<PackageReference Include="XFEExtension.NetCore" Version="3.0.0" />
19
<PackageReference Include="XFEExtension.NetCore.AutoConfig" Version="1.0.4" />
20
<PackageReference Include="XFEExtension.NetCore.AutoPath" Version="1.0.1" />
21
<PackageReference Include="XFEExtension.NetCore.TodoHighLight" Version="1.0.0" />
22
</ItemGroup>
23
24
<ItemGroup>
25
<Resource Include="Resources\Image\close.png" />
26
<Resource Include="Resources\Image\min.png" />
27
</ItemGroup>
28
29
</Project>
@@ -0,0 +1,43 @@
1
<Window x:Class="FileSystemWatcher.MainWindow"
2
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
5
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
6
xmlns:viewmodel="clr-namespace:FileSystemWatcher.ViewModel"
7
xmlns:local="clr-namespace:FileSystemWatcher"
8
mc:Ignorable="d"
9
Title="MainWindow" Height="500" Width="800" Background="Transparent" WindowStyle="None" AllowsTransparency="True" WindowStartupLocation="CenterScreen">
10
<Window.DataContext>
11
<viewmodel:MainWindowViewModel/>
12
</Window.DataContext>
13
<Border CornerRadius="20" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Background="#9898e7">
14
<Grid>
15
<Grid.ColumnDefinitions>
16
<ColumnDefinition Width="*"/>
17
<ColumnDefinition Width="3*"/>
18
</Grid.ColumnDefinitions>
19
<Grid.RowDefinitions>
20
<RowDefinition Height="25"/>
21
<RowDefinition Height="*"/>
22
</Grid.RowDefinitions>
23
<Border CornerRadius="20,0,0,20" Grid.Column="0" Grid.Row="0" Grid.RowSpan="2" Background="White"/>
24
<Border Grid.Column="1" Grid.Row="0" Background="Transparent">
25
<Grid>
26
<Grid.ColumnDefinitions>
27
<ColumnDefinition Width="*"/>
28
<ColumnDefinition Width="45"/>
29
<ColumnDefinition Width="45"/>
30
</Grid.ColumnDefinitions>
31
<Image Grid.Column="1" Source="/Resources/Image/min.png" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="2"/>
32
<Image Grid.Column="2" Source="/Resources/Image/close.png" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="2"/>
33
</Grid>
34
</Border>
35
<Border Grid.Column="0" Grid.Row="0" Background="Transparent">
36
<TextBlock VerticalAlignment="Center" HorizontalAlignment="Center">
37
<Span Foreground="#9898e7" FontSize="18" FontWeight="Bold">XFE·工具箱</Span>
38
</TextBlock>
39
</Border>
40
<Frame Grid.Column="1" Grid.Row="1" NavigationUIVisibility="Hidden" Content=""/>
41
</Grid>
42
</Border>
43
</Window>
@@ -0,0 +1,15 @@
1
using System.Windows;
2
3
namespace FileSystemWatcher
4
{
5
/// <summary>
6
/// Interaction logic for MainWindow.xaml
7
/// </summary>
8
public partial class MainWindow : Window
9
{
10
public MainWindow()
11
{
12
InitializeComponent();
13
}
14
}
15
}
二进制文件已变更,无法进行逐行预览。
二进制文件已变更,无法进行逐行预览。
@@ -0,0 +1,22 @@
1
using CommunityToolkit.Mvvm.ComponentModel;
2
using System.Windows.Controls;
3
4
namespace FileSystemWatcher.ViewModel;
5
6
public partial class MainWindowViewModel : ObservableObject
7
{
8
public MainWindow ViewPage { get; set; }
9
10
[ObservableProperty]
11
private Page? currentPage;
12
13
14
public MainWindowViewModel(MainWindow viewPage)
15
{
16
ViewPage = viewPage;
17
}
18
19
public MainWindowViewModel()
20
{
21
}
22
}
@@ -0,0 +1,14 @@
1
<Page x:Class="FileSystemWatcher.ViewPage.MainPage"
2
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
5
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
6
xmlns:local="clr-namespace:FileSystemWatcher.ViewPage"
7
mc:Ignorable="d"
8
d:DesignHeight="450" d:DesignWidth="800"
9
Title="MainPage">
10
11
<Grid>
12
13
</Grid>
14
</Page>
@@ -0,0 +1,28 @@
1
using System;
2
using System.Collections.Generic;
3
using System.Linq;
4
using System.Text;
5
using System.Threading.Tasks;
6
using System.Windows;
7
using System.Windows.Controls;
8
using System.Windows.Data;
9
using System.Windows.Documents;
10
using System.Windows.Input;
11
using System.Windows.Media;
12
using System.Windows.Media.Imaging;
13
using System.Windows.Navigation;
14
using System.Windows.Shapes;
15
16
namespace FileSystemWatcher.ViewPage
17
{
18
/// <summary>
19
/// MainPage.xaml 的交互逻辑
20
/// </summary>
21
public partial class MainPage : Page
22
{
23
public MainPage()
24
{
25
InitializeComponent();
26
}
27
}
28
}