5 public class Check : Layout
7 private Interop.SmartEvent _changed;
8 private bool _currentState;
10 public Check(EvasObject parent) : base(parent)
12 _changed = new Interop.SmartEvent(this, Handle, "changed");
13 _changed.On += (sender, e) =>
15 StateChanged?.Invoke(this, new CheckStateChangedEventArgs(_currentState, IsChecked));
19 public event EventHandler<CheckStateChangedEventArgs> StateChanged;
25 _currentState = Interop.Elementary.elm_check_state_get(Handle);
30 Interop.Elementary.elm_check_state_set(Handle, value);
34 protected override IntPtr CreateHandle(EvasObject parent)
36 return Interop.Elementary.elm_check_add(parent.Handle);