summaryrefslogtreecommitdiff
path: root/ElmSharp/ElmSharp
diff options
context:
space:
mode:
authorKangho Hur <kangho.hur@samsung.com>2017-06-01 06:58:26 +0000
committerGerrit Code Review <gerrit@review.ap-northeast-2.compute.internal>2017-06-01 06:58:26 +0000
commitbb988d6e3aeeeedd743dda62a7b1d20d1ae2870d (patch)
tree28608d82976c6b6a14e16d848437a34891d41a72 /ElmSharp/ElmSharp
parentcdf88bad0f121a5baca323a1ae035f76f00642fe (diff)
parentda9e8ac56c81f91e7d603a15a465e05829281975 (diff)
downloadelm-sharp-bb988d6e3aeeeedd743dda62a7b1d20d1ae2870d.tar.gz
elm-sharp-bb988d6e3aeeeedd743dda62a7b1d20d1ae2870d.tar.bz2
elm-sharp-bb988d6e3aeeeedd743dda62a7b1d20d1ae2870d.zip
Merge "Add clicked and expanded event to Hoversel" into tizen
Diffstat (limited to 'ElmSharp/ElmSharp')
-rw-r--r--[-rwxr-xr-x]ElmSharp/ElmSharp/Hoversel.cs22
1 files changed, 22 insertions, 0 deletions
diff --git a/ElmSharp/ElmSharp/Hoversel.cs b/ElmSharp/ElmSharp/Hoversel.cs
index b3201ce..6adca62 100755..100644
--- a/ElmSharp/ElmSharp/Hoversel.cs
+++ b/ElmSharp/ElmSharp/Hoversel.cs
@@ -40,6 +40,8 @@ namespace ElmSharp
/// </summary>
public class Hoversel : Layout
{
+ SmartEvent _clicked;
+ SmartEvent _expanded;
SmartEvent _dismissed;
SmartEvent<HoverselItemEventArgs> _selected;
Interop.Evas.SmartCallback _onItemSelected;
@@ -50,6 +52,16 @@ namespace ElmSharp
/// <param name="parent">The parent is a given container which will be attached by Hoversel as a child. It's <see cref="EvasObject"/> type.</param>
public Hoversel(EvasObject parent) : base(parent)
{
+ _clicked = new SmartEvent(this, "clicked");
+ _clicked.On += (sender, e) =>
+ {
+ Clicked?.Invoke(this, EventArgs.Empty);
+ };
+ _expanded = new SmartEvent(this, "expanded");
+ _expanded.On += (sender, e) =>
+ {
+ Expanded?.Invoke(this, EventArgs.Empty);
+ };
_dismissed = new SmartEvent(this, "dismissed");
_dismissed.On += (sender, e) =>
{
@@ -68,6 +80,16 @@ namespace ElmSharp
}
/// <summary>
+ /// Clicked will be triggered when Hoversel is clicked
+ /// </summary>
+ public event EventHandler Clicked;
+
+ /// <summary>
+ /// Expanded will be triggered when Hoversel is activated by clicking the hoversel or by a function
+ /// </summary>
+ public event EventHandler Expanded;
+
+ /// <summary>
/// Dismissed will be triggered when Hoversel Dismissed
/// </summary>
public event EventHandler Dismissed;