2 using System.Collections.Generic;
5 using System.Threading.Tasks;
9 public enum PanelDirection
29 public class Panel : Layout
31 Interop.SmartEvent _toggled;
32 public Panel(EvasObject parent) : base(parent)
34 _toggled = new Interop.SmartEvent(this, Handle, "toggled");
35 _toggled.On += (s, e) => Toggled?.Invoke(this, EventArgs.Empty);
42 return !Interop.Elementary.elm_panel_hidden_get(Handle);
46 Interop.Elementary.elm_panel_hidden_set(Handle, !value);
50 public PanelDirection Direction
54 return (PanelDirection)Interop.Elementary.elm_panel_orient_get(Handle);
58 Interop.Elementary.elm_panel_orient_set(Handle, (int)value);
62 public event EventHandler Toggled;
64 public void SetScrollable(bool enable)
66 Interop.Elementary.elm_panel_scrollable_set(Handle, enable);
69 public void SetScrollableArea(double ratio)
71 Interop.Elementary.elm_panel_scrollable_content_size_set(Handle, ratio);
76 Interop.Elementary.elm_panel_toggle(Handle);
79 protected override IntPtr CreateHandle(EvasObject parent)
81 return Interop.Elementary.elm_panel_add(parent);