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>
 /// Updates directions of the ContextPopup.
 /// </summary>
 void UpdateDirectionPriorities()
 {
     _popup.SetDirectionPriorty(
         (EContextPopupDirection)_priorities.First,
         (EContextPopupDirection)_priorities.Second,
         (EContextPopupDirection)_priorities.Third,
         (EContextPopupDirection)_priorities.Fourth);
 }