mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-03-02 15:50:51 +08:00
动画bug修复
This commit is contained in:
@@ -33,6 +33,7 @@ namespace AIStudio.Wpf.DiagramDesigner
|
||||
if (this.DataContext is ConnectionViewModel connector && connector.AnimationViewModel != null)
|
||||
{
|
||||
connector.AnimationViewModel.PropertyChanged -= Connector_PropertyChanged;
|
||||
connector.PropertyChanged -= Connector_PropertyChanged;
|
||||
}
|
||||
_story?.Stop();
|
||||
}
|
||||
@@ -43,6 +44,8 @@ namespace AIStudio.Wpf.DiagramDesigner
|
||||
{
|
||||
connector.AnimationViewModel.PropertyChanged -= Connector_PropertyChanged;
|
||||
connector.AnimationViewModel.PropertyChanged += Connector_PropertyChanged;
|
||||
connector.PropertyChanged -= Connector_PropertyChanged;
|
||||
connector.PropertyChanged += Connector_PropertyChanged;
|
||||
}
|
||||
this.ball.Visibility = Visibility.Collapsed;
|
||||
await DoAnimation();
|
||||
@@ -54,6 +57,7 @@ namespace AIStudio.Wpf.DiagramDesigner
|
||||
{
|
||||
case nameof(AnimationViewModel.Animation):
|
||||
case nameof(AnimationViewModel.Duration):
|
||||
case "PathGeneratorResult":
|
||||
await DoAnimation();
|
||||
break;
|
||||
case nameof(AnimationViewModel.Start):
|
||||
|
||||
Reference in New Issue
Block a user