diff --git a/WPF控件-8-ScrollViewer/App.xaml b/WPF控件-8-ScrollViewer/App.xaml
new file mode 100644
index 0000000..ec544d5
--- /dev/null
+++ b/WPF控件-8-ScrollViewer/App.xaml
@@ -0,0 +1,9 @@
+
+
+
+
+
diff --git a/WPF控件-8-ScrollViewer/App.xaml.cs b/WPF控件-8-ScrollViewer/App.xaml.cs
new file mode 100644
index 0000000..efcc297
--- /dev/null
+++ b/WPF控件-8-ScrollViewer/App.xaml.cs
@@ -0,0 +1,12 @@
+using System.Configuration;
+using System.Data;
+using System.Windows;
+
+namespace WPF控件_8_ScrollViewer;
+
+///
+/// Interaction logic for App.xaml
+///
+public partial class App : Application
+{
+}
\ No newline at end of file
diff --git a/WPF控件-8-ScrollViewer/AssemblyInfo.cs b/WPF控件-8-ScrollViewer/AssemblyInfo.cs
new file mode 100644
index 0000000..4a05c7d
--- /dev/null
+++ b/WPF控件-8-ScrollViewer/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控件-8-ScrollViewer/MainWindow.xaml b/WPF控件-8-ScrollViewer/MainWindow.xaml
new file mode 100644
index 0000000..988e5dd
--- /dev/null
+++ b/WPF控件-8-ScrollViewer/MainWindow.xaml
@@ -0,0 +1,52 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/WPF控件-8-ScrollViewer/MainWindow.xaml.cs b/WPF控件-8-ScrollViewer/MainWindow.xaml.cs
new file mode 100644
index 0000000..e264ac6
--- /dev/null
+++ b/WPF控件-8-ScrollViewer/MainWindow.xaml.cs
@@ -0,0 +1,34 @@
+using System.Windows;
+
+namespace WPF控件_8_ScrollViewer;
+
+///
+/// Interaction logic for MainWindow.xaml
+///
+public partial class MainWindow : Window
+{
+ public MainWindow()
+ {
+ InitializeComponent();
+ }
+
+ private void LineUpButton_OnClick(object sender, RoutedEventArgs e)
+ {
+ MyScrollViewer.LineUp();
+ }
+
+ private void LineDownButton_OnClick(object sender, RoutedEventArgs e)
+ {
+ MyScrollViewer.LineDown();
+ }
+
+ private void PageUpButton_OnClick(object sender, RoutedEventArgs e)
+ {
+ MyScrollViewer.PageUp();
+ }
+
+ private void PageLeftButton_OnClick(object sender, RoutedEventArgs e)
+ {
+ MyScrollViewer.PageLeft();
+ }
+}
\ No newline at end of file
diff --git a/WPF控件-8-ScrollViewer/WPF控件-8-ScrollViewer.csproj b/WPF控件-8-ScrollViewer/WPF控件-8-ScrollViewer.csproj
new file mode 100644
index 0000000..d1cb34c
--- /dev/null
+++ b/WPF控件-8-ScrollViewer/WPF控件-8-ScrollViewer.csproj
@@ -0,0 +1,12 @@
+
+
+
+ WinExe
+ net8.0-windows
+ WPF控件_8_ScrollViewer
+ enable
+ enable
+ true
+
+
+
diff --git a/WPF控件.sln b/WPF控件.sln
index 3425fd5..dc18acf 100644
--- a/WPF控件.sln
+++ b/WPF控件.sln
@@ -14,6 +14,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WPF控件-6-工具提示",
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WPF控件-7-Popup", "WPF控件-7-Popup\WPF控件-7-Popup.csproj", "{1C272D2C-BAC3-4D94-9491-E05B688B9A98}"
EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WPF控件-8-ScrollViewer", "WPF控件-8-ScrollViewer\WPF控件-8-ScrollViewer.csproj", "{84E26482-499C-412E-B43E-931BD0C0E983}"
+EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@@ -48,5 +50,9 @@ Global
{1C272D2C-BAC3-4D94-9491-E05B688B9A98}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1C272D2C-BAC3-4D94-9491-E05B688B9A98}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1C272D2C-BAC3-4D94-9491-E05B688B9A98}.Release|Any CPU.Build.0 = Release|Any CPU
+ {84E26482-499C-412E-B43E-931BD0C0E983}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {84E26482-499C-412E-B43E-931BD0C0E983}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {84E26482-499C-412E-B43E-931BD0C0E983}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {84E26482-499C-412E-B43E-931BD0C0E983}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
EndGlobal