public Arrow(Cadeirinha cad, double screenRelation) : this(cad) { Img.Margin = new Thickness() { Left = CalculateArrowMargin(screenRelation) }; }
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; }