Пример #1
0
 public static void Show(CompletionPopupView view)
 {
     if (view.CompletionItems.HasItems)
     {
         ForceShow(view);
     }
 }
Пример #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);
        }
Пример #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);
        }
Пример #4
0
 protected override bool ShouldSwallow(CompletionPopupView view, KeyEventArgs args)
 {
     return view.CompletionItems.Items.Count > 0;
 }
Пример #5
0
 protected override bool IsTriggeredAddon(IPopupEvent @event, CompletionPopupView view)
 {
     return view.IsOpen;
 }
Пример #6
0
 protected override bool ShouldSwallow(CompletionPopupView view, KeyEventArgs args)
 {
     return ShouldSwallowKeyPress;
 }
Пример #7
0
 protected override void DoAct(CompletionPopupView view, KeyEventArgs args)
 {
     Action(view);
 }
Пример #8
0
 protected override void DoAct(CompletionPopupView view, KeyEventArgs args)
 {
     PerformElementChanged(view, args);
 }
Пример #9
0
 public static void InvalidatePosition(CompletionPopupView view)
 {
     view.InvalidatePosition();
 }
Пример #10
0
 protected override void DoAct(CompletionPopupView view, KeyEventArgs args)
 {
     Action(view);
 }
Пример #11
0
 public static void Hide(CompletionPopupView view)
 {
     view.IsOpen = false;
     view.Target.Focus();
 }
Пример #12
0
 public static void Show(CompletionPopupView view)
 {
     if(view.CompletionItems.HasItems)
         ForceShow(view);
 }
Пример #13
0
 public static void InvalidatePosition(CompletionPopupView view)
 {
     view.InvalidatePosition();
 }
Пример #14
0
 public static void ForceShow(CompletionPopupView view)
 {
     view.IsOpen = true;
 }
Пример #15
0
 public static void Hide(CompletionPopupView view)
 {
     view.IsOpen = false;
     view.Target.Focus();
 }
Пример #16
0
 protected override bool ShouldSwallow(CompletionPopupView view, KeyEventArgs args)
 {
     return(view.CompletionItems.Items.Count > 0);
 }
Пример #17
0
 protected override void DoAct(CompletionPopupView view, KeyEventArgs args)
 {
     PerformElementChanged(view, args);
 }
Пример #18
0
 protected override bool IsTriggeredAddon(IPopupEvent @event, CompletionPopupView view)
 {
     return(view.IsOpen);
 }
Пример #19
0
 protected override bool ShouldSwallow(CompletionPopupView view, KeyEventArgs args)
 {
     return(ShouldSwallowKeyPress);
 }
Пример #20
0
 public static void ForceShow(CompletionPopupView view)
 {
     view.IsOpen = true;
 }