From cb45e2c63c43c6d8f91f04714c8dce7019f33ea5 Mon Sep 17 00:00:00 2001 From: Bunny <1319900154@qq.com> Date: Mon, 30 Dec 2024 16:39:11 +0800 Subject: [PATCH] =?UTF-8?q?WPF=E5=9F=BA=E7=A1=80-6-Grid5=E5=8F=8D=E9=94=AF?= =?UTF-8?q?=E9=BD=BF=E6=A8=A1=E7=B3=8A=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WPF基础-6-Grid5反锯齿模糊问题/App.xaml | 9 ++++++ WPF基础-6-Grid5反锯齿模糊问题/App.xaml.cs | 12 ++++++++ WPF基础-6-Grid5反锯齿模糊问题/AssemblyInfo.cs | 10 +++++++ WPF基础-6-Grid5反锯齿模糊问题/MainWindow.xaml | 29 +++++++++++++++++++ .../MainWindow.xaml.cs | 23 +++++++++++++++ .../WPF基础-6-Grid5反锯齿模糊问题.csproj | 12 ++++++++ WPF基础.sln | 6 ++++ 7 files changed, 101 insertions(+) create mode 100644 WPF基础-6-Grid5反锯齿模糊问题/App.xaml create mode 100644 WPF基础-6-Grid5反锯齿模糊问题/App.xaml.cs create mode 100644 WPF基础-6-Grid5反锯齿模糊问题/AssemblyInfo.cs create mode 100644 WPF基础-6-Grid5反锯齿模糊问题/MainWindow.xaml create mode 100644 WPF基础-6-Grid5反锯齿模糊问题/MainWindow.xaml.cs create mode 100644 WPF基础-6-Grid5反锯齿模糊问题/WPF基础-6-Grid5反锯齿模糊问题.csproj diff --git a/WPF基础-6-Grid5反锯齿模糊问题/App.xaml b/WPF基础-6-Grid5反锯齿模糊问题/App.xaml new file mode 100644 index 0000000..718091f --- /dev/null +++ b/WPF基础-6-Grid5反锯齿模糊问题/App.xaml @@ -0,0 +1,9 @@ + + + + + diff --git a/WPF基础-6-Grid5反锯齿模糊问题/App.xaml.cs b/WPF基础-6-Grid5反锯齿模糊问题/App.xaml.cs new file mode 100644 index 0000000..9e2f4ce --- /dev/null +++ b/WPF基础-6-Grid5反锯齿模糊问题/App.xaml.cs @@ -0,0 +1,12 @@ +using System.Configuration; +using System.Data; +using System.Windows; + +namespace WPF基础_6_Grid5反锯齿模糊问题; + +/// +/// Interaction logic for App.xaml +/// +public partial class App : Application +{ +} \ No newline at end of file diff --git a/WPF基础-6-Grid5反锯齿模糊问题/AssemblyInfo.cs b/WPF基础-6-Grid5反锯齿模糊问题/AssemblyInfo.cs new file mode 100644 index 0000000..4a05c7d --- /dev/null +++ b/WPF基础-6-Grid5反锯齿模糊问题/AssemblyInfo.cs @@ -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) +)] \ No newline at end of file diff --git a/WPF基础-6-Grid5反锯齿模糊问题/MainWindow.xaml b/WPF基础-6-Grid5反锯齿模糊问题/MainWindow.xaml new file mode 100644 index 0000000..2cebb72 --- /dev/null +++ b/WPF基础-6-Grid5反锯齿模糊问题/MainWindow.xaml @@ -0,0 +1,29 @@ + + + + + + + + + + + + + + + 防止模糊 + UseLayoutRounding="True" + + + + + + \ No newline at end of file diff --git a/WPF基础-6-Grid5反锯齿模糊问题/MainWindow.xaml.cs b/WPF基础-6-Grid5反锯齿模糊问题/MainWindow.xaml.cs new file mode 100644 index 0000000..393fd32 --- /dev/null +++ b/WPF基础-6-Grid5反锯齿模糊问题/MainWindow.xaml.cs @@ -0,0 +1,23 @@ +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 WPF基础_6_Grid5反锯齿模糊问题; + +/// +/// Interaction logic for MainWindow.xaml +/// +public partial class MainWindow : Window +{ + public MainWindow() + { + InitializeComponent(); + } +} \ No newline at end of file diff --git a/WPF基础-6-Grid5反锯齿模糊问题/WPF基础-6-Grid5反锯齿模糊问题.csproj b/WPF基础-6-Grid5反锯齿模糊问题/WPF基础-6-Grid5反锯齿模糊问题.csproj new file mode 100644 index 0000000..1df5443 --- /dev/null +++ b/WPF基础-6-Grid5反锯齿模糊问题/WPF基础-6-Grid5反锯齿模糊问题.csproj @@ -0,0 +1,12 @@ + + + + WinExe + net8.0-windows + WPF基础_6_Grid5反锯齿模糊问题 + enable + enable + true + + + diff --git a/WPF基础.sln b/WPF基础.sln index 09f2cb0..44a4ca6 100644 --- a/WPF基础.sln +++ b/WPF基础.sln @@ -30,6 +30,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WPF基础-6-Grid3", "WPF基 EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WPF基础-6-Grid4对话框", "WPF基础-6-Grid4对话框\WPF基础-6-Grid4对话框.csproj", "{BF049906-A0DC-4FE2-AFF9-B6A4C746E122}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WPF基础-6-Grid5反锯齿模糊问题", "WPF基础-6-Grid5反锯齿模糊问题\WPF基础-6-Grid5反锯齿模糊问题.csproj", "{F6C2DF99-F63F-472C-95D6-7FDAF5AD4D72}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -96,5 +98,9 @@ Global {BF049906-A0DC-4FE2-AFF9-B6A4C746E122}.Debug|Any CPU.Build.0 = Debug|Any CPU {BF049906-A0DC-4FE2-AFF9-B6A4C746E122}.Release|Any CPU.ActiveCfg = Release|Any CPU {BF049906-A0DC-4FE2-AFF9-B6A4C746E122}.Release|Any CPU.Build.0 = Release|Any CPU + {F6C2DF99-F63F-472C-95D6-7FDAF5AD4D72}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {F6C2DF99-F63F-472C-95D6-7FDAF5AD4D72}.Debug|Any CPU.Build.0 = Debug|Any CPU + {F6C2DF99-F63F-472C-95D6-7FDAF5AD4D72}.Release|Any CPU.ActiveCfg = Release|Any CPU + {F6C2DF99-F63F-472C-95D6-7FDAF5AD4D72}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection EndGlobal