Exemplo n.º 1
0
 public Arrow(Cadeirinha cad, double screenRelation) : this(cad)
 {
     Img.Margin = new Thickness()
     {
         Left = CalculateArrowMargin(screenRelation)
     };
 }
Exemplo n.º 2
0
 public Arrow(Cadeirinha cad)
 {
     ArrowHeight = 100;
     Cad         = cad;
     Direction   = GetArrowDirection();
     Img.Source  = new Bmp(Direction).GetBitMapSource();
     Img.Height  = ArrowHeight;
     Img.Margin  = new Thickness()
     {
         Left = Cad.Width - ArrowHeight / 2
     };
     Img.HorizontalAlignment = HorizontalAlignment.Left;
 }