[ElmSharp] Modified to call Deleted event when EvasObject Unrealized (#170) 5.0.0.14289
authorarosis78 <35049857+arosis78@users.noreply.github.com>
Tue, 20 Mar 2018 04:34:26 +0000 (13:34 +0900)
committerGitHub <noreply@github.com>
Tue, 20 Mar 2018 04:34:26 +0000 (13:34 +0900)
* Modified to call Deleted event when EvasObject unrealized

* Update EvasObject.cs

src/ElmSharp/ElmSharp/EvasObject.cs

index 75fe2e8..5d84180 100644 (file)
@@ -1110,6 +1110,7 @@ namespace ElmSharp
                 (Parent as Window)?.RemoveChild(this);
 
                 Interop.Evas.evas_object_del(toBeDeleted);
+                Deleted?.Invoke(this, EventArgs.Empty);
                 Parent = null;
                 s_handleTable.Remove(toBeDeleted);
             }
@@ -1154,4 +1155,4 @@ namespace ElmSharp
             _eventStore.Add(item);
         }
     }
-}
\ No newline at end of file
+}