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 @@ - + - - - - - - + - + - - - - -