1个回答
展开全部
<Grid>
<TextBox Text="hello paste" MinWidth="100"
HorizontalAlignment="Center" VerticalAlignment="Center">
<TextBox.CommandBindings>
<CommandBinding Command="ApplicationCommands.Paste"
Executed="CommandBinding_Executed"
CanExecute="CommandBinding_CanExecute"/>
</TextBox.CommandBindings>
</TextBox>
</Grid>
private void CommandBinding_Executed(object sender, ExecutedRoutedEventArgs e)
{
}
//后台
private void CommandBinding_CanExecute(object sender, CanExecuteRoutedEventArgs e)
{
e.Handled = true;
}
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询