Browse Source

Moved CancelableEventArgs to Avalonia.Interactivity

sdoroff 7 năm trước cách đây
mục cha
commit
7a1305f2d8

+ 0 - 9
src/Avalonia.Controls/AutoCompleteBox.cs

@@ -28,15 +28,6 @@ using System.Threading.Tasks;
 
 namespace Avalonia.Controls
 {
-    public class CancelableEventArgs : EventArgs
-    {
-        public bool Cancel { get; set; }
-
-        public CancelableEventArgs()
-            : base()
-        { }
-    }
-    
     /// <summary>
     /// Provides data for the
     /// <see cref="E:Avalonia.Controls.AutoCompleteBox.Populated" />

+ 16 - 0
src/Avalonia.Interactivity/CancelableEventArgs.cs

@@ -0,0 +1,16 @@
+// Copyright (c) The Avalonia Project. All rights reserved.
+// Licensed under the MIT license. See licence.md file in the project root for full license information.
+
+using System;
+
+namespace Avalonia.Interactivity
+{
+    public class CancelableEventArgs : EventArgs
+    {
+        public bool Cancel { get; set; }
+
+        public CancelableEventArgs()
+            : base()
+        { }
+    }
+}