From 5c76a1df83714429dfccca5bbc37d1c031822ac4 Mon Sep 17 00:00:00 2001 From: "DESKTOP-3BO4HSG\\ksat" Date: Tue, 10 Jan 2023 10:33:58 +0800 Subject: [PATCH] chore: remove topmost view int viewmodel --- STranslate/View/MainWindow.xaml | 4 +++- STranslate/ViewModel/MainVM.cs | 16 +++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/STranslate/View/MainWindow.xaml b/STranslate/View/MainWindow.xaml index e067d01..6f678bd 100644 --- a/STranslate/View/MainWindow.xaml +++ b/STranslate/View/MainWindow.xaml @@ -46,7 +46,8 @@ Key="T" Command="{Binding TopmostCmd}"/> + Command="{Binding EscCmd}" + CommandParameter="{Binding ElementName=TopmostBtn, Mode=OneWay}"/> @@ -80,6 +81,7 @@