File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change 172
172
Background =" Transparent"
173
173
PreviewDragOver =" OnPreviewDragOver"
174
174
Style =" {DynamicResource QueryBoxStyle}"
175
+ SelectionChanged =" TextBox_SelectionChanged"
175
176
Text =" {Binding QueryText, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
176
177
Visibility =" Visible" >
177
178
<TextBox .ContextMenu>
Original file line number Diff line number Diff line change @@ -260,6 +260,14 @@ private void InitProgressbarAnimation()
260
260
isProgressBarStoryboardPaused = true ;
261
261
}
262
262
263
+ private void TextBox_SelectionChanged ( object sender , RoutedEventArgs e )
264
+ {
265
+
266
+ // QueryTextSuggestionBox.ScrollToCaret();
267
+ QueryTextSuggestionBox . ScrollToLine ( QueryTextBox . GetLineIndexFromCharacterIndex ( QueryTextBox . SelectionStart ) ) ;
268
+ QueryTextSuggestionBox . CaretIndex = QueryTextBox . CaretIndex ;
269
+ }
270
+
263
271
public void WindowAnimator ( )
264
272
{
265
273
if ( _animating )
You can’t perform that action at this time.
0 commit comments