From e49218b58f218271ed27b54fc779e680236c0e2d Mon Sep 17 00:00:00 2001 From: Richasy Date: Sun, 7 Jan 2024 16:58:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=87=8D=E5=A4=8D=E6=90=9C?= =?UTF-8?q?=E7=B4=A2=E6=B2=A1=E6=9C=89=E7=94=9F=E6=95=88=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App/Forms/MainWindow.xaml.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/App/Forms/MainWindow.xaml.cs b/src/App/Forms/MainWindow.xaml.cs index 90e8c630..f2cd9480 100644 --- a/src/App/Forms/MainWindow.xaml.cs +++ b/src/App/Forms/MainWindow.xaml.cs @@ -199,6 +199,12 @@ private void OnRequestSearch(object sender, string e) vm.InitializeCommand.Execute(default); _ = OverlayFrame.Navigate(typeof(SearchPage), vm); } + else + { + var page = OverlayFrame.Content as SearchPage; + page.ViewModel.SetKeyword(e); + page.ViewModel.InitializeCommand.Execute(default); + } } private void OnRequestShowMyMessages(object sender, EventArgs e)