Exemplo n.º 1
0
 public static void Show(CompletionPopupView view)
 {
     if (view.CompletionItems.HasItems)
     {
         ForceShow(view);
     }
 }
Exemplo n.º 2
0
        private void PerformElementChanged(CompletionPopupView view, KeyEventArgs args)
        {
            if (view.CompletionItems.Items.Count <= 0)
                return;

            if (args.Key == Key.Down)
                view.Model.SelectNextCompletionItem();
            else view.Model.SelectPreviousCompletionItem();

            view.CompletionItems.ScrollIntoView(view.Model.SelectedCompletionItem);
        }
Exemplo n.º 3
0
        private void PerformElementChanged(CompletionPopupView view, KeyEventArgs args)
        {
            if (view.CompletionItems.Items.Count <= 0)
            {
                return;
            }

            if (args.Key == Key.Down)
            {
                view.Model.SelectNextCompletionItem();
            }
            else
            {
                view.Model.SelectPreviousCompletionItem();
            }

            view.CompletionItems.ScrollIntoView(view.Model.SelectedCompletionItem);
        }
Exemplo n.º 4
0
 protected override bool ShouldSwallow(CompletionPopupView view, KeyEventArgs args)
 {
     return view.CompletionItems.Items.Count > 0;
 }
Exemplo n.º 5
0
 protected override bool IsTriggeredAddon(IPopupEvent @event, CompletionPopupView view)
 {
     return view.IsOpen;
 }
Exemplo n.º 6
0
 protected override bool ShouldSwallow(CompletionPopupView view, KeyEventArgs args)
 {
     return ShouldSwallowKeyPress;
 }
Exemplo n.º 7
0
 protected override void DoAct(CompletionPopupView view, KeyEventArgs args)
 {
     Action(view);
 }
Exemplo n.º 8
0
 protected override void DoAct(CompletionPopupView view, KeyEventArgs args)
 {
     PerformElementChanged(view, args);
 }
Exemplo n.º 9
0
 public static void InvalidatePosition(CompletionPopupView view)
 {
     view.InvalidatePosition();
 }
Exemplo n.º 10
0
 protected override void DoAct(CompletionPopupView view, KeyEventArgs args)
 {
     Action(view);
 }
Exemplo n.º 11
0
 public static void Hide(CompletionPopupView view)
 {
     view.IsOpen = false;
     view.Target.Focus();
 }
Exemplo n.º 12
0
 public static void Show(CompletionPopupView view)
 {
     if(view.CompletionItems.HasItems)
         ForceShow(view);
 }
Exemplo n.º 13
0
 public static void InvalidatePosition(CompletionPopupView view)
 {
     view.InvalidatePosition();
 }
Exemplo n.º 14
0
 public static void ForceShow(CompletionPopupView view)
 {
     view.IsOpen = true;
 }
Exemplo n.º 15
0
 public static void Hide(CompletionPopupView view)
 {
     view.IsOpen = false;
     view.Target.Focus();
 }
Exemplo n.º 16
0
 protected override bool ShouldSwallow(CompletionPopupView view, KeyEventArgs args)
 {
     return(view.CompletionItems.Items.Count > 0);
 }
Exemplo n.º 17
0
 protected override void DoAct(CompletionPopupView view, KeyEventArgs args)
 {
     PerformElementChanged(view, args);
 }
Exemplo n.º 18
0
 protected override bool IsTriggeredAddon(IPopupEvent @event, CompletionPopupView view)
 {
     return(view.IsOpen);
 }
Exemplo n.º 19
0
 protected override bool ShouldSwallow(CompletionPopupView view, KeyEventArgs args)
 {
     return(ShouldSwallowKeyPress);
 }
Exemplo n.º 20
0
 public static void ForceShow(CompletionPopupView view)
 {
     view.IsOpen = true;
 }