commit 400d5eae63a600db00a5195c4a65a0cd5effc8dc
Author: Bunny <1319900154@qq.com>
Date: Sat Dec 28 22:36:52 2024 +0800
样式制作
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..ffd1659
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,38 @@
+HELP.md
+target/
+!.mvn/wrapper/maven-wrapper.jar
+!**/src/main/**/target/
+!**/src/test/**/target/
+logs/
+application-prod.yml
+[b|B]in
+[o|O]bj
+
+### STS ###
+.apt_generated
+.classpath
+.factorypath
+.project
+.settings
+.springBeans
+.sts4-cache
+
+
+### IntelliJ IDEA ###
+.idea
+*.iws
+*.iml
+*.ipr
+
+### NetBeans ###
+/nbproject/private/
+/nbbuild/
+/dist/
+/nbdist/
+/.nb-gradle/
+build/
+!**/src/main/**/build/
+!**/src/test/**/build/
+
+### VS Code ###
+.vscode/
diff --git a/WPF基础-1/App.xaml b/WPF基础-1/App.xaml
new file mode 100644
index 0000000..87528af
--- /dev/null
+++ b/WPF基础-1/App.xaml
@@ -0,0 +1,9 @@
+
+
+
+
+
diff --git a/WPF基础-1/App.xaml.cs b/WPF基础-1/App.xaml.cs
new file mode 100644
index 0000000..df620a2
--- /dev/null
+++ b/WPF基础-1/App.xaml.cs
@@ -0,0 +1,12 @@
+using System.Configuration;
+using System.Data;
+using System.Windows;
+
+namespace WPF基础_1;
+
+///
+/// Interaction logic for App.xaml
+///
+public partial class App : Application
+{
+}
\ No newline at end of file
diff --git a/WPF基础-1/AssemblyInfo.cs b/WPF基础-1/AssemblyInfo.cs
new file mode 100644
index 0000000..4a05c7d
--- /dev/null
+++ b/WPF基础-1/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基础-1/MainWindow.xaml b/WPF基础-1/MainWindow.xaml
new file mode 100644
index 0000000..9bac437
--- /dev/null
+++ b/WPF基础-1/MainWindow.xaml
@@ -0,0 +1,47 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 有什么问题吗
+
+
+
+
+
+ 回答就在这,关于xaml受到一些影响,[<] [>] " "
+
+
+
+
\ No newline at end of file
diff --git a/WPF基础-1/MainWindow.xaml.cs b/WPF基础-1/MainWindow.xaml.cs
new file mode 100644
index 0000000..11ae48d
--- /dev/null
+++ b/WPF基础-1/MainWindow.xaml.cs
@@ -0,0 +1,40 @@
+using System.Windows;
+using System.Windows.Media;
+
+namespace WPF基础_1;
+
+///
+/// Interaction logic for MainWindow.xaml
+///
+public partial class MainWindow : Window
+{
+ public MainWindow()
+ {
+ InitializeComponent();
+
+ var brush = new LinearGradientBrush();
+
+ var gradientStop1 = new GradientStop
+ {
+ Offset = 0,
+ Color = Colors.Red
+ };
+ brush.GradientStops.Add(gradientStop1);
+
+ var gradientStop2 = new GradientStop
+ {
+ Offset = 0.5,
+ Color = Colors.Indigo
+ };
+ brush.GradientStops.Add(gradientStop2);
+
+ var gradientStop3 = new GradientStop
+ {
+ Offset = 1,
+ Color = Colors.Violet
+ };
+ brush.GradientStops.Add(gradientStop3);
+
+ Grid.Background = brush;
+ }
+}
\ No newline at end of file
diff --git a/WPF基础-1/WPF基础-1.csproj b/WPF基础-1/WPF基础-1.csproj
new file mode 100644
index 0000000..bc9dfc5
--- /dev/null
+++ b/WPF基础-1/WPF基础-1.csproj
@@ -0,0 +1,23 @@
+
+
+
+ WinExe
+ net8.0-windows
+ WPF基础_1
+ enable
+ enable
+ true
+
+
+
+
+
+ Always
+
+
+
+ Always
+
+
+
+
diff --git a/WPF基础-1/public/images/1.ico b/WPF基础-1/public/images/1.ico
new file mode 100644
index 0000000..d7bff7f
Binary files /dev/null and b/WPF基础-1/public/images/1.ico differ
diff --git a/WPF基础-1/public/images/1.png b/WPF基础-1/public/images/1.png
new file mode 100644
index 0000000..5dedbe2
Binary files /dev/null and b/WPF基础-1/public/images/1.png differ
diff --git a/WPF基础.sln b/WPF基础.sln
new file mode 100644
index 0000000..120efdb
--- /dev/null
+++ b/WPF基础.sln
@@ -0,0 +1,22 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WPF基础", "WPF基础\WPF基础.csproj", "{49C77780-54C3-4DFF-BE0D-D4B9A62ABA3C}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WPF基础-1", "WPF基础-1\WPF基础-1.csproj", "{170C5C64-A7D4-4507-B11E-8DB65F1AF1E6}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {49C77780-54C3-4DFF-BE0D-D4B9A62ABA3C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {49C77780-54C3-4DFF-BE0D-D4B9A62ABA3C}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {49C77780-54C3-4DFF-BE0D-D4B9A62ABA3C}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {49C77780-54C3-4DFF-BE0D-D4B9A62ABA3C}.Release|Any CPU.Build.0 = Release|Any CPU
+ {170C5C64-A7D4-4507-B11E-8DB65F1AF1E6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {170C5C64-A7D4-4507-B11E-8DB65F1AF1E6}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {170C5C64-A7D4-4507-B11E-8DB65F1AF1E6}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {170C5C64-A7D4-4507-B11E-8DB65F1AF1E6}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+EndGlobal
diff --git a/WPF基础/App.xaml b/WPF基础/App.xaml
new file mode 100644
index 0000000..f11bb00
--- /dev/null
+++ b/WPF基础/App.xaml
@@ -0,0 +1,9 @@
+
+
+
+
+
diff --git a/WPF基础/App.xaml.cs b/WPF基础/App.xaml.cs
new file mode 100644
index 0000000..4c71440
--- /dev/null
+++ b/WPF基础/App.xaml.cs
@@ -0,0 +1,12 @@
+using System.Configuration;
+using System.Data;
+using System.Windows;
+
+namespace WPF基础;
+
+///
+/// Interaction logic for App.xaml
+///
+public partial class App : Application
+{
+}
\ No newline at end of file
diff --git a/WPF基础/AssemblyInfo.cs b/WPF基础/AssemblyInfo.cs
new file mode 100644
index 0000000..4a05c7d
--- /dev/null
+++ b/WPF基础/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基础/MainWindow.xaml b/WPF基础/MainWindow.xaml
new file mode 100644
index 0000000..f9c6be7
--- /dev/null
+++ b/WPF基础/MainWindow.xaml
@@ -0,0 +1,12 @@
+
+
+
+
+
diff --git a/WPF基础/MainWindow.xaml.cs b/WPF基础/MainWindow.xaml.cs
new file mode 100644
index 0000000..cb0a5ff
--- /dev/null
+++ b/WPF基础/MainWindow.xaml.cs
@@ -0,0 +1,16 @@
+using System.Windows;
+
+namespace WPF基础;
+
+///
+/// Interaction logic for MainWindow.xaml
+///
+public partial class MainWindow : Window
+{
+ public MainWindow()
+ {
+ InitializeComponent();
+
+ MessageBox.Show(string.Format($"这个Grid的宽高是:{Grid.ActualWidth}和{Grid.ActualHeight}"));
+ }
+}
\ No newline at end of file
diff --git a/WPF基础/WPF基础.csproj b/WPF基础/WPF基础.csproj
new file mode 100644
index 0000000..c4a3262
--- /dev/null
+++ b/WPF基础/WPF基础.csproj
@@ -0,0 +1,11 @@
+
+
+
+ WinExe
+ net8.0-windows
+ enable
+ enable
+ true
+
+
+