public ContextPopupImplementation()
        {
            _popup = new EContextPopup(TForms.NativeParent)
            {
                Style = "select_mode",
            };

            _popup.BackButtonPressed += (s, e) =>
            {
                _popup.Dismiss();
            };

            _popup.Dismissed += (s, e) =>
            {
                Dismissed?.Invoke(this, EventArgs.Empty);
            };

            _popup.SetDirectionPriorty(
                EContextPopupDirection.Down,
                EContextPopupDirection.Down,
                EContextPopupDirection.Down,
                EContextPopupDirection.Down);

            _items = new Dictionary <ContextPopupItem, EContextPopupItem>();
        }
        /// <summary>
        /// ContextPopupRenderer class constructor.
        /// </summary>
        public ContextPopupRenderer()
        {
            _popup = new EContextPopup(TForms.NativeParent);

            _popup.BackButtonPressed += (s, e) =>
            {
                _popup.Dismiss();
            };

            _popup.Dismissed += (s, e) =>
            {
                Dismissed?.Invoke(this, EventArgs.Empty);
            };

            _items = new Dictionary <ContextPopupItem, EContextPopupItem>();
        }
 /// <summary>
 /// Dismisses the ContextPopup.
 /// </summary>
 public void Dismiss()
 {
     _popup.Dismiss();
 }