Skip to content

Commit 8e2bdcd

Browse files
committed
添加应用程序图标并更新资源文件
在 `MainWindow.xaml` 文件中移除了显示当前图像分辨率和大小的 `TextBlock` 的默认文本。 添加了新的 `ClassifyImage.ico` 图标文件内容。
1 parent 1c7efde commit 8e2bdcd

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

ClassifyImage/ClassifyImage.csproj

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
<Nullable>enable</Nullable>
77
<ImplicitUsings>enable</ImplicitUsings>
88
<UseWPF>true</UseWPF>
9+
<ApplicationIcon>res\ClassifyImage.ico</ApplicationIcon>
910
</PropertyGroup>
1011

1112
<ItemGroup>
@@ -20,6 +21,10 @@
2021
<None Remove="res\size_icon.png" />
2122
</ItemGroup>
2223

24+
<ItemGroup>
25+
<Content Include="res\ClassifyImage.ico" />
26+
</ItemGroup>
27+
2328
<ItemGroup>
2429
<PackageReference Include="System.Drawing.Common" Version="9.0.1" />
2530
</ItemGroup>

ClassifyImage/MainWindow.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@
4242
<ColumnDefinition Width="5*"></ColumnDefinition>
4343
</Grid.ColumnDefinitions>
4444
<Image Grid.Column="0" Source="res\size_icon.png"/>
45-
<TextBlock Grid.Column="1" HorizontalAlignment="Left" VerticalAlignment="Center" Name="now_img_resolution_text" Margin="5,0,0,0">1500x8400</TextBlock>
45+
<TextBlock Grid.Column="1" HorizontalAlignment="Left" VerticalAlignment="Center" Name="now_img_resolution_text" Margin="5,0,0,0"></TextBlock>
4646
<Image Grid.Column="2" Source="res\save_icon.png"/>
47-
<TextBlock Grid.Column="3" HorizontalAlignment="Left" Name="now_img_size_text" VerticalAlignment="Center" Margin="5,0,0,0">104.3KB</TextBlock>
47+
<TextBlock Grid.Column="3" HorizontalAlignment="Left" Name="now_img_size_text" VerticalAlignment="Center" Margin="5,0,0,0"></TextBlock>
4848
</Grid>
4949
<Grid Grid.Column="2" Width="Auto" >
5050
<Grid.ColumnDefinitions>
988 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)