void textbox_GotFocus(object sender, RoutedEventArgs e)
{
avatar_image_LostFocus(null, null);
user_pin_LostFocus(null, null);
focused_textbox = (Control)sender;
if (keyboard_frame == null)
keyboard_frame = new ContentControl();
virtual_keyboard.ShowKeyboard(this, ref keyboard);
keyboard.parent_frame = keyboard_frame;
if (keyboard.validation_checker == null) keyboard.validation_checker = new CharacterValidation(this.ValidateString);
keyboard_frame.Visibility = System.Windows.Visibility.Visible;
if (keyboard != null)
{
if (this.keyboard_frame.Content == null)
{
this.keyboard_frame.Content = keyboard;
//this.keyboard.Background = new SolidColorBrush(Colors.White);
this.keyboard_frame.Background = new SolidColorBrush(Colors.White);
window_manager.main_canvas.Children.Add(keyboard_frame);
}
keyboard.MoveAlongWith(parent, true);
}
}