public override void OnInitialize() { baseElement.Width.Pixels = 1066; baseElement.Height.Pixels = 770; baseElement.Center(); baseElement.SetPadding(0); Append(baseElement); background.Width.Pixels = 1026; background.Height.Pixels = 770; background.Left.Pixels = 40; background.SetPadding(0); baseElement.Append(background); view.Width.Set(-16, 1); view.Height.Set(-16, 1); view.Center(); view.SetPadding(0); view.PreDrawChildren += DrawLines; background.Append(view); }