public MessageBox() : base() { _frame = new MessageBoxFrame(Orientation.Vertical); Control = _frame; _bodyStack = new Stack(Orientation.Horizontal); _frame.AddChild(_bodyStack); _messageLabel = new Label(); _bodyStack.AddChild(_messageLabel); _buttonStack = new GenericStack<Button>(Orientation.Horizontal); _frame.AddChild(_buttonStack); GrayScene = true; CloseOnOutsideClick = false; }
protected virtual void Decorate(MessageBoxFrame box) { FillRectangle(Coord.Zeros, box.RenderSize, AllCorners, FillType.Background, HitState.None, AnchorLocation.SE); StrokeRectangle(Coord.Zeros, box.RenderSize, AllCorners, HitState.None); }