private void OnSizeToggled (object sender, RoutedEventArgs e) { textBox.Height = textBox.Height == 100 ? 200 : 100; } }