コード例 #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();
 }