From c2f4d3c706c476ada4ce8ce0007706e2bf4e0537 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=89=BE=E7=AB=B9?= Date: Sun, 19 Mar 2023 12:38:08 +0800 Subject: [PATCH] =?UTF-8?q?mind=20=E5=B7=A5=E5=85=B7=E6=A0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../UserControls/DiagramControl.xaml | 18 +- .../AdditionViewModel/FontViewModel.cs | 4 +- AIStudio.Wpf.Mind/Controls/ColorPicker.xaml | 74 +++------ .../Controls/ColorPicker.xaml.cs | 32 ++-- .../Controls/OpenFileTextBox.xaml | 40 +++++ .../Controls/OpenFileTextBox.xaml.cs | 65 ++++++++ .../Controls/ToolBoxControl.xaml | 76 ++++++--- AIStudio.Wpf.Mind/Themes/Generic.xaml | 1 + AIStudio.Wpf.Mind/Themes/MindNode.xaml | 10 +- .../ViewModels/IMindDiagramViewModel.cs | 26 +-- .../ViewModels/MindDiagramViewModel.cs | 157 +++++++++--------- AIStudio.Wpf.Mind/ViewModels/MindNode.cs | 22 ++- 12 files changed, 312 insertions(+), 213 deletions(-) create mode 100644 AIStudio.Wpf.Mind/Controls/OpenFileTextBox.xaml create mode 100644 AIStudio.Wpf.Mind/Controls/OpenFileTextBox.xaml.cs diff --git a/AIStudio.Wpf.DiagramDesigner/UserControls/DiagramControl.xaml b/AIStudio.Wpf.DiagramDesigner/UserControls/DiagramControl.xaml index b81c9b7..6673de3 100644 --- a/AIStudio.Wpf.DiagramDesigner/UserControls/DiagramControl.xaml +++ b/AIStudio.Wpf.DiagramDesigner/UserControls/DiagramControl.xaml @@ -426,10 +426,6 @@ Value="true"> - - - @@ -466,8 +462,8 @@ Value="{Binding Area.Left}" /> - + @@ -641,9 +637,6 @@ - - - @@ -768,10 +761,6 @@ Value="true"> - - - - @@ -822,9 +811,6 @@ Value="true"> - - - diff --git a/AIStudio.Wpf.DiagramDesigner/ViewModels/AdditionViewModel/FontViewModel.cs b/AIStudio.Wpf.DiagramDesigner/ViewModels/AdditionViewModel/FontViewModel.cs index 5a695bf..87ca138 100644 --- a/AIStudio.Wpf.DiagramDesigner/ViewModels/AdditionViewModel/FontViewModel.cs +++ b/AIStudio.Wpf.DiagramDesigner/ViewModels/AdditionViewModel/FontViewModel.cs @@ -88,7 +88,7 @@ namespace AIStudio.Wpf.DiagramDesigner FontCase = FontCase.None; HorizontalAlignment = HorizontalAlignment.Center; VerticalAlignment = VerticalAlignment.Center; - LineHeight = 0; + LineHeight = Double.NaN; }); } } @@ -458,7 +458,7 @@ namespace AIStudio.Wpf.DiagramDesigner } } - private double _lineHeight; + private double _lineHeight = Double.NaN; public double LineHeight { get diff --git a/AIStudio.Wpf.Mind/Controls/ColorPicker.xaml b/AIStudio.Wpf.Mind/Controls/ColorPicker.xaml index c63d1e2..dcc74cd 100644 --- a/AIStudio.Wpf.Mind/Controls/ColorPicker.xaml +++ b/AIStudio.Wpf.Mind/Controls/ColorPicker.xaml @@ -7,35 +7,34 @@ - M0,0 L3,0 4.5,1.5 6,0 9,0 4.5,4.5 z + M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z + +