From 2260b9799360ec6fbaa0243fca58278ecaba239a Mon Sep 17 00:00:00 2001 From: wenjy Date: Sat, 18 Mar 2023 09:59:13 +0800 Subject: [PATCH] =?UTF-8?q?change=20-=20=E7=99=BB=E5=BD=95=E5=AF=86?= =?UTF-8?q?=E7=A0=81=E6=A1=86=E7=A6=81=E6=AD=A2=E5=A4=8D=E5=88=B6=E7=B2=98?= =?UTF-8?q?=E8=B4=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- MaterialTraceabilityUI/UserLogin.xaml | 8 ++++++-- MaterialTraceabilityUI/UserLogin.xaml.cs | 15 +++++++++++++++ 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/MaterialTraceabilityUI/UserLogin.xaml b/MaterialTraceabilityUI/UserLogin.xaml index 928a97b..5e66e3a 100644 --- a/MaterialTraceabilityUI/UserLogin.xaml +++ b/MaterialTraceabilityUI/UserLogin.xaml @@ -47,8 +47,12 @@ diff --git a/MaterialTraceabilityUI/UserLogin.xaml.cs b/MaterialTraceabilityUI/UserLogin.xaml.cs index 25f492d..3c03f64 100644 --- a/MaterialTraceabilityUI/UserLogin.xaml.cs +++ b/MaterialTraceabilityUI/UserLogin.xaml.cs @@ -98,6 +98,21 @@ namespace MaterialTraceabilityUI } }); } + + /// + /// 禁止粘贴 + /// + /// + /// + private void CommandBinding_CanExecute(object sender, CanExecuteRoutedEventArgs e) + { + e.Handled = true; + } + + private void CommandBinding_Executed(object sender, ExecutedRoutedEventArgs e) + { + + } //--------------------------------------------- //private void password_KeyDown(object sender, KeyEventArgs e) //{