From 54df39c01cb6d4d767f899ecceb39390419b11f6 Mon Sep 17 00:00:00 2001 From: Sparrkle Date: Wed, 21 Sep 2022 20:13:50 +0900 Subject: [PATCH] Fixed QueryTextBox Binding Error. --- Flow.Launcher/MainWindow.xaml.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Flow.Launcher/MainWindow.xaml.cs b/Flow.Launcher/MainWindow.xaml.cs index 258019457..bc952681d 100644 --- a/Flow.Launcher/MainWindow.xaml.cs +++ b/Flow.Launcher/MainWindow.xaml.cs @@ -561,7 +561,10 @@ namespace Flow.Launcher private void QueryTextBox_KeyUp(object sender, KeyEventArgs e) { if(_viewModel.QueryText != QueryTextBox.Text) - _viewModel.QueryText = QueryTextBox.Text; + { + BindingExpression be = QueryTextBox.GetBindingExpression(System.Windows.Controls.TextBox.TextProperty); + be.UpdateSource(); + } } } }