public static void SetUpdateTextBoxOnKeyPress(TextBox element, UpdateTextBoxOnKeyPress value) { element.SetValue(UpdateTextBoxOnKeyPressProperty, value); }
 private void CreateUpdateOnKeyPress()
 {
     updateOnKeyPress = new UpdateTextBoxOnKeyPress();
     Behaviors.SetUpdateTextBoxOnKeyPress(textbox, updateOnKeyPress);
 }