private void MainForm_Loaded(object sender, RoutedEventArgs e) { DrawArea.InitializeHelperObjects(); DrawArea.Initialize(); DrawArea.DrawFilled = true; DrawArea.LineWidth = 2; DrawArea.PenType = TypeOfPen.PenType.Normal; DrawArea.IsRotated = false; btnFilledSolid.Content = "C"; chkFillBackGround.IsChecked = false; lsbForeground.SelectedColor = Colors.Black; lsbBackground.SelectedColor = Colors.CadetBlue; cbxNormal.IsChecked = true; ExpFilledCustom.IsEnabled = false; txtRotate.Text = "90"; btnUndo.IsEnabled = false; btnRedo.IsEnabled = false; btnPaste.IsEnabled = false; txtRotate.IsEnabled = false; btnRotateLeft.IsEnabled = false; btnRotateRight.IsEnabled = false; menuResetRotate.IsEnabled = false; btnUndo.Foreground = new SolidColorBrush(Colors.Black); btnRedo.Foreground = new SolidColorBrush(Colors.Black); btnPaste.Foreground = new SolidColorBrush(Colors.Black); btnRotateLeft.Foreground = new SolidColorBrush(Colors.Black); btnRotateRight.Foreground = new SolidColorBrush(Colors.Black); }