Example #1
0
        private static void TextBox_PreviewMouseLeftButtonUp(object sender, MouseButtonEventArgs e)
        {
            e.Handled = true;
            TextBox        textBox        = sender as TextBox;
            NumberKeyboard numberKeyboard = null;

            if (GetNumberKeyboard(textBox) == null)
            {
                SetNumberKeyboard(textBox, new NumberKeyboard());
            }
            numberKeyboard        = GetNumberKeyboard(textBox);
            numberKeyboard._owner = textBox;
            numberKeyboard.Show();
        }
Example #2
0
 private static void SetNumberKeyboard(TextBox textBoxBase, NumberKeyboard value)
 {
     textBoxBase.SetValue(NumberKeyboardProperty, value);
 }