private void DefaultConditions() //This Is The Method Called On The Startup Of The PaintApp { inkManager = new InkManager(); //Initializes The Inkmanager strokeThickness = 5; //Initialize The Drawing Pen's Thickness To 5 shapeKind = ShapeTyp.LINE; //Initialize The Drawing Shape To Line pen = new SolidColorBrush(Colors.Black); //Initialize The Drawing Pen With Black Color hideLayers(); }
private void EraseButtonClicked(object sender, RoutedEventArgs e) { pen = new SolidColorBrush(Colors.White); shapeKind = ShapeTyp.LINE; }
private void RectangleButtonClicked(object sender, RoutedEventArgs e) //Invoked When Rectangle Button Is Clicked { shapeKind = ShapeTyp.RECTANGLE; //Change The Shape Type To Rectangle ShapeType.Symbol = Symbol.ViewAll; }
private void UpButtonClicked(object sender, RoutedEventArgs e) //Invoked When Ellipse Button Is Clicked { shapeKind = ShapeTyp.STRAIGHTLINE; //Change The Shape Type To Ellipse ShapeType.Symbol = Symbol.Up; }
private void EllipseButtonClicked(object sender, RoutedEventArgs e) //Invoked When Ellipse Button Is Clicked { shapeKind = ShapeTyp.ELLIPSE; //Change The Shape Type To Ellipse ShapeType.Symbol = Symbol.Target; }
private void LineButtonClicked(object sender, RoutedEventArgs e) //Invoked When Line Button Is Clicked { shapeKind = ShapeTyp.LINE; //Change The Shape Type To Line ShapeType.Symbol = Symbol.Highlight; }