예제 #1
0
파일: Item.cs 프로젝트: ChrisMoreton/Test3
 public Item(Point center, Size extent, double angle, Selection selection)
 {
     //this.center = new Point(0.0, 0.0);
     //this.extent = new Size(50.0, 50.0);
     //this.angle = 0.0;
     stencil = new Tank();
     viewbox = new Viewbox();
     viewbox.StretchDirection = StretchDirection.Both;
     viewbox.Stretch = Stretch.Fill;
     viewbox.MaxWidth = 400.0;
     viewbox.MaxHeight = 400.0;
     viewbox.Child = stencil;
     this.center = center;
     this.extent = extent;
     this.angle = angle;
     Children.Add(viewbox);
     Update();
 }
예제 #2
0
 public Item(Point center, Size extent, double angle, Selection selection)
 {
     //this.center = new Point(0.0, 0.0);
     //this.extent = new Size(50.0, 50.0);
     //this.angle = 0.0;
     stencil = new Tank();
     viewbox = new Viewbox();
     viewbox.StretchDirection = StretchDirection.Both;
     viewbox.Stretch          = Stretch.Fill;
     viewbox.MaxWidth         = 400.0;
     viewbox.MaxHeight        = 400.0;
     viewbox.Child            = stencil;
     this.center = center;
     this.extent = extent;
     this.angle  = angle;
     Children.Add(viewbox);
     Update();
 }