commit 9a73500d2f5c369ddf47641dc0ead1e44e49cbc9 Author: editor <@51Aspx.com> Date: Tue Jun 25 17:57:03 2024 +0800 初始化 diff --git a/51Aspx源码必读.txt b/51Aspx源码必读.txt new file mode 100644 index 0000000..a4d4a62 --- /dev/null +++ b/51Aspx源码必读.txt @@ -0,0 +1,54 @@ +WPF物理曲线模拟 + + + 一、源码描述 + + + WPF物理曲线模拟 + + + 环境:VS2022 WPF + + + + + + 二、功能介绍 + + + 运行后,可用鼠标控制两条向量的长度与方向,进而生成曲线。 + + + + + + 三、注意事项 + + + ctrl+F5运行即可。 + + + + + + +作者: coderbest + +如需获得该源码的视频、更新等更多资料请访问: https://www.51aspx.com/Code/PhysicalCurveSimulation +------------------------------------------------------------------------------------------------ + + 源码服务专家 + 官网: https://www.51aspx.com + 讨论圈: https://club.51aspx.com/ + +平台声明: + +1.51Aspx平台上提供下载的资源为免费、共享、商业三类源码,其中免费和共享源码仅供个人学习和研究使用,商业源码请在相应的授权许可条件下使用; +2.51Aspx平台对提供下载的软件及其它资源不拥有任何权利,其版权归属源码合法拥有者所有; +3.著作权人发现本网站载有侵害其合法权益的内容或作品,请与我们联系( 登录官网与客服反馈或发送邮件到support@51Aspx.com ); +4.51Aspx平台不保证提供的下载资源的准确性、安全性和完整性; + +友情提示: + 一般数据库文件默认在 DB_51Aspx 文件夹下 + 默认账号密码一般均为51Aspx + 关于源码使用常见问题及解决方案,请参阅: https://www.51aspx.com/Help diff --git a/App.xaml b/App.xaml new file mode 100644 index 0000000..2fb04e8 --- /dev/null +++ b/App.xaml @@ -0,0 +1,6 @@ + + + diff --git a/App.xaml.cs b/App.xaml.cs new file mode 100644 index 0000000..4b36e2e --- /dev/null +++ b/App.xaml.cs @@ -0,0 +1,11 @@ +namespace YiYan127.WPF +{ + using System.Windows; + + /// + /// App.xaml 的交互逻辑 + /// + public partial class App : Application + { + } +} diff --git a/Arrows/AdjustableArrowBezierCurve.cs b/Arrows/AdjustableArrowBezierCurve.cs new file mode 100644 index 0000000..01f391a --- /dev/null +++ b/Arrows/AdjustableArrowBezierCurve.cs @@ -0,0 +1,15 @@ +namespace YiYan127.WPF.Arrows +{ + using System.Windows; + using System.Windows.Input; + using System.Windows.Media; + + /// + /// 可调整的贝塞尔曲线 + /// + public class AdjustableArrowBezierCurve : ArrowBezierCurve + { + #region Fields + + /// + /// 是否显示控制的依赖属性 diff --git a/Arrows/AdjustableArrowQuadraticBezier.cs b/Arrows/AdjustableArrowQuadraticBezier.cs new file mode 100644 index 0000000..8026bf3 --- /dev/null +++ b/Arrows/AdjustableArrowQuadraticBezier.cs @@ -0,0 +1,15 @@ +namespace YiYan127.WPF.Arrows +{ + using System.Windows; + using System.Windows.Input; + using System.Windows.Media; + + /// + /// 可调整的二次贝塞尔曲线 + /// + public class AdjustableArrowQuadraticBezier : ArrowQuadraticBezier + { + #region Fields + + /// + /// 是否显示控制的依赖属性 diff --git a/Arrows/ArrowBase.cs b/Arrows/ArrowBase.cs new file mode 100644 index 0000000..6f14c62 --- /dev/null +++ b/Arrows/ArrowBase.cs @@ -0,0 +1,15 @@ +namespace YiYan127.WPF.Arrows +{ + using System.Windows; + using System.Windows.Media; + using System.Windows.Shapes; + + /// + /// ��ͷ���� + /// + public abstract class ArrowBase : Shape + { + #region Fields + + #region DependencyProperty + diff --git a/Arrows/ArrowBezierCurve.cs b/Arrows/ArrowBezierCurve.cs new file mode 100644 index 0000000..2f12a53 --- /dev/null +++ b/Arrows/ArrowBezierCurve.cs @@ -0,0 +1,15 @@ +namespace YiYan127.WPF.Arrows +{ + using System.Windows; + using System.Windows.Media; + + /// + /// ����ͷ�ı��������� + /// + public class ArrowBezierCurve : ArrowBase + { + #region Fields + + #region DependencyProperty + + /// diff --git a/Arrows/ArrowEnds.cs b/Arrows/ArrowEnds.cs new file mode 100644 index 0000000..c05c654 --- /dev/null +++ b/Arrows/ArrowEnds.cs @@ -0,0 +1,15 @@ +namespace YiYan127.WPF.Arrows +{ + using System; + + /// + /// ��ͷ���ڶ� + /// + [Flags] + public enum ArrowEnds + { + /// + /// �޼�ͷ + /// + None = 0, + diff --git a/Arrows/ArrowLine.cs b/Arrows/ArrowLine.cs new file mode 100644 index 0000000..fb34666 --- /dev/null +++ b/Arrows/ArrowLine.cs @@ -0,0 +1,15 @@ +namespace YiYan127.WPF.Arrows +{ + using System.Windows; + using System.Windows.Media; + + /// + /// ����֮�����ͷ��ֱ�� + /// + public class ArrowLine : ArrowBase + { + #region Fields + + /// + /// ������ + /// diff --git a/Arrows/ArrowLineWithText.cs b/Arrows/ArrowLineWithText.cs new file mode 100644 index 0000000..81d413e --- /dev/null +++ b/Arrows/ArrowLineWithText.cs @@ -0,0 +1,15 @@ +namespace YiYan127.WPF.Arrows +{ + using System.Globalization; + using System.Windows; + using System.Windows.Media; + + /// + /// 带文本和箭头的两点之间连线 + /// + public class ArrowLineWithText : ArrowLine + { + #region DependencyProperty + + /// + /// 文本的依赖属性 diff --git a/Arrows/ArrowQuadraticBezier.cs b/Arrows/ArrowQuadraticBezier.cs new file mode 100644 index 0000000..1c7cb47 --- /dev/null +++ b/Arrows/ArrowQuadraticBezier.cs @@ -0,0 +1,15 @@ +namespace YiYan127.WPF.Arrows +{ + using System.Windows; + using System.Windows.Media; + + /// + /// 二次贝塞尔曲线 + /// + public class ArrowQuadraticBezier : ArrowBase + { + #region Fields + + #region DependencyProperty + + /// diff --git a/MainWindow.xaml b/MainWindow.xaml new file mode 100644 index 0000000..1ecb3ff --- /dev/null +++ b/MainWindow.xaml @@ -0,0 +1,15 @@ + + + + + /// MainWindow.xaml 的交互逻辑 + /// + public partial class MainWindow : Window + { + /// + /// 构造函数 + /// + public MainWindow() + { + InitializeComponent(); diff --git a/Properties/AssemblyInfo.cs b/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..77eb8f6 --- /dev/null +++ b/Properties/AssemblyInfo.cs @@ -0,0 +1,15 @@ +using System.Reflection; +using System.Resources; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using System.Windows; + +// 有关程序集的常规信息通过以下 +// 特性集控制。更改这些特性值可修改 +// 与程序集关联的信息。 +[assembly: AssemblyTitle("YiYan127.WPF")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("YiYan127.WPF")] +[assembly: AssemblyCopyright("Copyright © 2015")] diff --git a/Properties/Resources.Designer.cs b/Properties/Resources.Designer.cs new file mode 100644 index 0000000..f3049a7 --- /dev/null +++ b/Properties/Resources.Designer.cs @@ -0,0 +1,15 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace YiYan127.WPF.Properties { + using System; + + + /// diff --git a/Properties/Resources.resx b/Properties/Resources.resx new file mode 100644 index 0000000..151e799 --- /dev/null +++ b/Properties/Resources.resx @@ -0,0 +1,15 @@ + + +