diff --git a/DeedyDesigner/Deedy.Activity/ActionViewer.cs b/DeedyDesigner/Deedy.Activity/ActionViewer.cs
index 898f188..14e9501 100644
--- a/DeedyDesigner/Deedy.Activity/ActionViewer.cs
+++ b/DeedyDesigner/Deedy.Activity/ActionViewer.cs
@@ -975,6 +975,56 @@ namespace Deedy.Activity
// 事件触发前可以进行一定的处理逻辑
RaiseEvent(args);
}
+ ///
+ /// 准备拖动
+ ///
+ ///
+ /// 在对象被拖动之前发生,可以被取消
+ ///
+ public static readonly RoutedEvent PreviewActionDragEvent = EventManager.RegisterRoutedEvent("ActionDrag", RoutingStrategy.Tunnel,
+ typeof(EventHandler), typeof(ActionViewer));
+ ///
+ /// 事件「准备拖动」封装
+ ///
+ public event EventHandler PreviewActionDrag
+ {
+ add { AddHandler(PreviewActionDragEvent, value); }
+ remove { RemoveHandler(PreviewActionDragEvent, value); }
+ }
+ ///
+ /// 事件「准备拖动」触发
+ ///
+ /// 事件参数
+ protected virtual void RaiseEvent_PreviewActionDrag(CancelRoutedEventArgs args)
+ {
+ // 事件触发前可以进行一定的处理逻辑
+ RaiseEvent(args);
+ }
+ ///
+ /// 准备放置
+ ///
+ ///
+ /// 在对象被放置之前发生,可以被取消
+ ///
+ public static readonly RoutedEvent PreviewActionDropEvent = EventManager.RegisterRoutedEvent("ActionDrop", RoutingStrategy.Tunnel,
+ typeof(EventHandler), typeof(ActionViewer));
+ ///
+ /// 事件「准备放置」封装
+ ///
+ public event EventHandler PreviewActionDrop
+ {
+ add { AddHandler(PreviewActionDropEvent, value); }
+ remove { RemoveHandler(PreviewActionDropEvent, value); }
+ }
+ ///
+ /// 事件「准备放置」触发
+ ///
+ /// 事件参数
+ protected virtual void RaiseEvent_PreviewActionDrop(CancelRoutedEventArgs args)
+ {
+ // 事件触发前可以进行一定的处理逻辑
+ RaiseEvent(args);
+ }
#endregion
}
}