public static void Show(CompletionPopupView view) { if (view.CompletionItems.HasItems) { ForceShow(view); } }
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); }
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); }
protected override bool ShouldSwallow(CompletionPopupView view, KeyEventArgs args) { return view.CompletionItems.Items.Count > 0; }
protected override bool IsTriggeredAddon(IPopupEvent @event, CompletionPopupView view) { return view.IsOpen; }
protected override bool ShouldSwallow(CompletionPopupView view, KeyEventArgs args) { return ShouldSwallowKeyPress; }
protected override void DoAct(CompletionPopupView view, KeyEventArgs args) { Action(view); }
protected override void DoAct(CompletionPopupView view, KeyEventArgs args) { PerformElementChanged(view, args); }
public static void InvalidatePosition(CompletionPopupView view) { view.InvalidatePosition(); }
protected override void DoAct(CompletionPopupView view, KeyEventArgs args) { Action(view); }
public static void Hide(CompletionPopupView view) { view.IsOpen = false; view.Target.Focus(); }
public static void Show(CompletionPopupView view) { if(view.CompletionItems.HasItems) ForceShow(view); }
public static void InvalidatePosition(CompletionPopupView view) { view.InvalidatePosition(); }
public static void ForceShow(CompletionPopupView view) { view.IsOpen = true; }
public static void Hide(CompletionPopupView view) { view.IsOpen = false; view.Target.Focus(); }
protected override bool ShouldSwallow(CompletionPopupView view, KeyEventArgs args) { return(view.CompletionItems.Items.Count > 0); }
protected override void DoAct(CompletionPopupView view, KeyEventArgs args) { PerformElementChanged(view, args); }
protected override bool IsTriggeredAddon(IPopupEvent @event, CompletionPopupView view) { return(view.IsOpen); }
protected override bool ShouldSwallow(CompletionPopupView view, KeyEventArgs args) { return(ShouldSwallowKeyPress); }
public static void ForceShow(CompletionPopupView view) { view.IsOpen = true; }