Exemplo n.º 1
0
 /// <summary>
 /// 補完候補の表示要求を処理する
 /// </summary>
 /// <param name="ev"></param>
 protected override void RequestShowCompleteBox(ShowingCompleteBoxEventArgs ev)
 {
     this.inputedWord           = ev.inputedWord;
     this.listBox1.SelectedItem = ((CompleteCollection <ICompleteItem>) this.listBox1.DataSource)[ev.foundIndex];
     this.listBox1.Visible      = true;
     this.listBox1.Location     = ev.CaretPostion;
 }
Exemplo n.º 2
0
 /// <summary>
 /// 補完候補の表示要求を処理する
 /// </summary>
 /// <param name="ev"></param>
 protected override void RequestShowCompleteBox(ShowingCompleteBoxEventArgs ev)
 {
     this.inputedWord            = ev.inputedWord;
     this.listBox1.SelectedIndex = ev.foundIndex;
     this.listBox1.ScrollIntoView(this.listBox1.SelectedItem);
     this.popup.Placement          = PlacementMode.Absolute;
     this.popup.PlacementRectangle = new Rect(ev.CaretPostion, new Size(listBox1.ActualWidth, listBox1.Height));
     this.popup.IsOpen             = true;
 }