I'd like to disable the ability of the backspace key to clear my RadComboBox. I have tried doing the following:
But this doesn't appear to work due to the fact that myCombo is cleared before my event handler ever fires, and e.Handled is already set to true.
Is there any way I can disable the current backspace functionality?
Thanks.
public
MyPage()
{
InitializeComponent();
this
.myCombo.AddHandler(FrameworkElement.KeyDownEvent,
new
KeyEventHandler(myCombo_KeyDown),
true
);
}
protected
void
myCombo_KeyDown(
object
sender, KeyEventArgs e)
{
if
(e.Key == Key.Back)
{
e.Handled =
true
;
}
}
But this doesn't appear to work due to the fact that myCombo is cleared before my event handler ever fires, and e.Handled is already set to true.
Is there any way I can disable the current backspace functionality?
Thanks.