From 9b78352dc2e77c0a90fcf13459eb519055f85087 Mon Sep 17 00:00:00 2001 From: Bunny <1319900154@qq.com> Date: Thu, 9 Jan 2025 10:58:55 +0800 Subject: [PATCH] =?UTF-8?q?WPF=E6=8E=A7=E4=BB=B6-16-ScrollBar?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WPF控件-16-ScrollBar/App.xaml | 9 ++++++++ WPF控件-16-ScrollBar/App.xaml.cs | 12 ++++++++++ WPF控件-16-ScrollBar/AssemblyInfo.cs | 10 ++++++++ WPF控件-16-ScrollBar/MainWindow.xaml | 18 +++++++++++++++ WPF控件-16-ScrollBar/MainWindow.xaml.cs | 23 +++++++++++++++++++ .../WPF控件-16-ScrollBar.csproj | 12 ++++++++++ WPF控件.sln | 6 +++++ 7 files changed, 90 insertions(+) create mode 100644 WPF控件-16-ScrollBar/App.xaml create mode 100644 WPF控件-16-ScrollBar/App.xaml.cs create mode 100644 WPF控件-16-ScrollBar/AssemblyInfo.cs create mode 100644 WPF控件-16-ScrollBar/MainWindow.xaml create mode 100644 WPF控件-16-ScrollBar/MainWindow.xaml.cs create mode 100644 WPF控件-16-ScrollBar/WPF控件-16-ScrollBar.csproj diff --git a/WPF控件-16-ScrollBar/App.xaml b/WPF控件-16-ScrollBar/App.xaml new file mode 100644 index 0000000..fe1664d --- /dev/null +++ b/WPF控件-16-ScrollBar/App.xaml @@ -0,0 +1,9 @@ + + + + + diff --git a/WPF控件-16-ScrollBar/App.xaml.cs b/WPF控件-16-ScrollBar/App.xaml.cs new file mode 100644 index 0000000..3b848fe --- /dev/null +++ b/WPF控件-16-ScrollBar/App.xaml.cs @@ -0,0 +1,12 @@ +using System.Configuration; +using System.Data; +using System.Windows; + +namespace WPF控件_16_RangeBase; + +/// +/// Interaction logic for App.xaml +/// +public partial class App : Application +{ +} \ No newline at end of file diff --git a/WPF控件-16-ScrollBar/AssemblyInfo.cs b/WPF控件-16-ScrollBar/AssemblyInfo.cs new file mode 100644 index 0000000..4a05c7d --- /dev/null +++ b/WPF控件-16-ScrollBar/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控件-16-ScrollBar/MainWindow.xaml b/WPF控件-16-ScrollBar/MainWindow.xaml new file mode 100644 index 0000000..9655dd5 --- /dev/null +++ b/WPF控件-16-ScrollBar/MainWindow.xaml @@ -0,0 +1,18 @@ + + + + + + \ No newline at end of file diff --git a/WPF控件-16-ScrollBar/MainWindow.xaml.cs b/WPF控件-16-ScrollBar/MainWindow.xaml.cs new file mode 100644 index 0000000..6c2935f --- /dev/null +++ b/WPF控件-16-ScrollBar/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控件_16_RangeBase; + +/// +/// Interaction logic for MainWindow.xaml +/// +public partial class MainWindow : Window +{ + public MainWindow() + { + InitializeComponent(); + } +} \ No newline at end of file diff --git a/WPF控件-16-ScrollBar/WPF控件-16-ScrollBar.csproj b/WPF控件-16-ScrollBar/WPF控件-16-ScrollBar.csproj new file mode 100644 index 0000000..0c4f15f --- /dev/null +++ b/WPF控件-16-ScrollBar/WPF控件-16-ScrollBar.csproj @@ -0,0 +1,12 @@ + + + + WinExe + net8.0-windows + WPF控件_16_RangeBase + enable + enable + true + + + diff --git a/WPF控件.sln b/WPF控件.sln index a05b9a0..6be98d0 100644 --- a/WPF控件.sln +++ b/WPF控件.sln @@ -36,6 +36,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WPF控件-15-ListBox", "WPF EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WPF控件-15-ListBox2", "WPF控件-15-ListBox2\WPF控件-15-ListBox2.csproj", "{169AB792-6D9D-4F12-A49A-320F01A0AFF0}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WPF控件-16-ScrollBar", "WPF控件-16-ScrollBar\WPF控件-16-ScrollBar.csproj", "{9A8BB5B9-8A81-4A08-8293-CD3B07A6C7C7}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -114,5 +116,9 @@ Global {169AB792-6D9D-4F12-A49A-320F01A0AFF0}.Debug|Any CPU.Build.0 = Debug|Any CPU {169AB792-6D9D-4F12-A49A-320F01A0AFF0}.Release|Any CPU.ActiveCfg = Release|Any CPU {169AB792-6D9D-4F12-A49A-320F01A0AFF0}.Release|Any CPU.Build.0 = Release|Any CPU + {9A8BB5B9-8A81-4A08-8293-CD3B07A6C7C7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {9A8BB5B9-8A81-4A08-8293-CD3B07A6C7C7}.Debug|Any CPU.Build.0 = Debug|Any CPU + {9A8BB5B9-8A81-4A08-8293-CD3B07A6C7C7}.Release|Any CPU.ActiveCfg = Release|Any CPU + {9A8BB5B9-8A81-4A08-8293-CD3B07A6C7C7}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection EndGlobal