Ver Fonte

细节优化

Shun há 2 anos atrás
pai
commit
c613c872aa
2 ficheiros alterados com 17 adições e 12 exclusões
  1. 12 12
      src/YSAI.Tool.Wpf/Main.xaml
  2. 5 0
      src/YSAI.Tool.Wpf/YSAI.Tool.Wpf.csproj

+ 12 - 12
src/YSAI.Tool.Wpf/Main.xaml

@@ -1,13 +1,13 @@
 <base:WindowBase x:Class="YSAI.Tool.Wpf.Main"
-        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
-        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
-        xmlns:base="clr-namespace:YSAI.Core.Wpf;assembly=YSAI.Core.Wpf"
-        xmlns:local="clr-namespace:YSAI.Tool.Wpf.controllers"
-        Icon="image\YSAI_One.ico"
-        FontFamily="{DynamicResource AllFontFamily}" WindowStartupLocation="CenterScreen" IsContentBackgroundPicture="True" ResizeMode="CanResize"
-        xmlns:ui="http://schemas.lepo.co/wpfui/2022/xaml"
+                 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+                 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+                 xmlns:base="clr-namespace:YSAI.Core.Wpf;assembly=YSAI.Core.Wpf"
+                 xmlns:local="clr-namespace:YSAI.Tool.Wpf.controllers"
+                 Icon="image\YSAI_One.ico"
+                 FontFamily="{DynamicResource AllFontFamily}" WindowStartupLocation="CenterScreen" IsContentBackgroundPicture="True" ResizeMode="CanResize"
+                 xmlns:ui="http://schemas.lepo.co/wpfui/2022/xaml"
                  xmlns:pages="clr-namespace:YSAI.Tool.Wpf.views"
-        Title="[ 远舢智能 ] 调试工具" >
+                 Title="[ 远舢智能 ] 调试工具" >
     <Window.DataContext>
         <local:MainController />
     </Window.DataContext>
@@ -22,10 +22,10 @@
             </ResourceDictionary>
         </Grid.Resources>
         <ui:NavigationView
-                    MenuItemsSource="{Binding MenuItemsSource}" 
-                    FooterMenuItemsSource="{Binding FooterMenuItemsSource}" 
-                    IsBackButtonVisible="Auto"
-                    IsPaneToggleVisible="True">
+            MenuItemsSource="{Binding MenuItemsSource}"
+            FooterMenuItemsSource="{Binding FooterMenuItemsSource}"
+            IsBackButtonVisible="Auto"
+            IsPaneToggleVisible="True">
             <ui:NavigationView.AutoSuggestBox>
                 <ui:AutoSuggestBox PlaceholderText=" 搜索" >
                     <ui:AutoSuggestBox.Icon>

+ 5 - 0
src/YSAI.Tool.Wpf/YSAI.Tool.Wpf.csproj

@@ -1,5 +1,9 @@
 <Project Sdk="Microsoft.NET.Sdk">
 
+  <PropertyGroup Label="Globals">
+    <WebView2UseWinRT>False</WebView2UseWinRT>
+  </PropertyGroup>
+
   <PropertyGroup>
     <OutputType>WinExe</OutputType>
     <TargetFramework>net8.0-windows</TargetFramework>
@@ -8,6 +12,7 @@
     <UseWPF>true</UseWPF>
 	  <SatelliteResourceLanguages>zh-Hans</SatelliteResourceLanguages>
 	  <PlatformTarget>x86</PlatformTarget>
+	  <ApplicationIcon>image\YSAI_One.ico</ApplicationIcon>
   </PropertyGroup>
 
   <ItemGroup>