From 548e3008d350fc21eaae263cf47d078a0edc8291 Mon Sep 17 00:00:00 2001 From: zggsong Date: Mon, 16 Oct 2023 13:38:15 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=89=AA=E8=B4=B4?= =?UTF-8?q?=E6=9D=BF=E8=A2=AB=E5=8D=A0=E7=94=A8(=E5=A6=82he3)=E6=97=B6?= =?UTF-8?q?=E5=86=99=E5=85=A5=E5=89=AA=E8=B4=B4=E6=9D=BF=E5=BC=82=E5=B8=B8?= =?UTF-8?q?=E9=80=80=E5=87=BA=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- STranslate/ViewModel/MainVM.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/STranslate/ViewModel/MainVM.cs b/STranslate/ViewModel/MainVM.cs index 444d52bb..f8990397 100644 --- a/STranslate/ViewModel/MainVM.cs +++ b/STranslate/ViewModel/MainVM.cs @@ -85,27 +85,27 @@ public MainVM() //复制输入 CopyInputCmd = new RelayCommand((_) => true, (_) => { - Clipboard.SetText(InputTxt); + Clipboard.SetDataObject(InputTxt); }); //复制翻译结果 CopyResultCmd = new RelayCommand((_) => true, (_) => { - Clipboard.SetText(OutputTxt); + Clipboard.SetDataObject(OutputTxt); }); //复制蛇形结果 CopySnakeResultCmd = new RelayCommand((_) => true, (_) => { - Clipboard.SetText(SnakeRet); + Clipboard.SetDataObject(SnakeRet); }); //复制小驼峰结果 CopySmallHumpResultCmd = new RelayCommand((_) => true, (_) => { - Clipboard.SetText(SmallHumpRet); + Clipboard.SetDataObject(SmallHumpRet); }); //复制大驼峰结果 CopyLargeHumpResultCmd = new RelayCommand((_) => true, (_) => { - Clipboard.SetText(LargeHumpRet); + Clipboard.SetDataObject(LargeHumpRet); }); //主题切换