Exemple #1
0
        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();
        }
Exemple #2
0
 private void EraseButtonClicked(object sender, RoutedEventArgs e)
 {
     pen = new SolidColorBrush(Colors.White);
     shapeKind = ShapeTyp.LINE;
 }
Exemple #3
0
 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;
 }
Exemple #4
0
 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;
 }
Exemple #5
0
 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;
 }
Exemple #6
0
 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;
 }