From 5935a585413ede24c654b2170ba090bdb14dc2f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=89=BE=E7=AB=B9?= Date: Wed, 5 Apr 2023 20:35:10 +0800 Subject: [PATCH] =?UTF-8?q?mind=E5=A4=9A=E4=B8=AA=E6=A0=B9=E8=8A=82?= =?UTF-8?q?=E7=82=B9=E7=9A=84=E6=97=B6=E5=80=99=EF=BC=8C=E5=88=87=E6=8D=A2?= =?UTF-8?q?=E6=A8=A1=E5=BC=8F=E7=9A=84=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AIStudio.Wpf.DiagramApp/Views/MainWindow.xaml | 14 +- .../CustomDefinedDesignerItemViewModel.cs | 4 +- .../UserControls/DiagramControl.xaml | 2 +- .../DesignerItemViewModelBase.cs | 24 ++- .../BaseViewModel/DiagramViewModel.cs | 9 +- .../Controls/ToolBoxControl.xaml | 16 +- AIStudio.Wpf.Mind/Themes/MindNode.xaml | 6 +- .../ViewModels/IMindDiagramViewModel.cs | 10 +- .../ViewModels/MindDiagramViewModel.cs | 195 +++++++++--------- AIStudio.Wpf.Mind/ViewModels/MindNode.cs | 5 +- 10 files changed, 136 insertions(+), 149 deletions(-) diff --git a/AIStudio.Wpf.DiagramApp/Views/MainWindow.xaml b/AIStudio.Wpf.DiagramApp/Views/MainWindow.xaml index a185b79..d9e15d8 100644 --- a/AIStudio.Wpf.DiagramApp/Views/MainWindow.xaml +++ b/AIStudio.Wpf.DiagramApp/Views/MainWindow.xaml @@ -2171,17 +2171,12 @@ - + - - - - - - + @@ -2206,11 +2201,6 @@ - - - - - - + o.ToString() == nameof(ZoomValue)).Throttle(TimeSpan.FromMilliseconds(100)).Subscribe(OnZoomValueChanged);//Sample - + this.PropertyChanged += DiagramViewModel_PropertyChanged; BuildMenuOptions(); } + public DiagramViewModel(DiagramItem diagramItem) : this() { DiagramType = diagramItem.DiagramType; @@ -1161,6 +1163,11 @@ namespace AIStudio.Wpf.DiagramDesigner #endregion #region 属性改变 + protected virtual void DiagramViewModel_PropertyChanged(object sender, PropertyChangedEventArgs e) + { + + } + private void Items_CollectionChanged(object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e) { if (e.OldItems != null) diff --git a/AIStudio.Wpf.Mind/Controls/ToolBoxControl.xaml b/AIStudio.Wpf.Mind/Controls/ToolBoxControl.xaml index 625c573..c892d1d 100644 --- a/AIStudio.Wpf.Mind/Controls/ToolBoxControl.xaml +++ b/AIStudio.Wpf.Mind/Controls/ToolBoxControl.xaml @@ -416,32 +416,22 @@ - + - - - - - - + - + - - - - -