public Form(int x, int y, int width, int height) { FormRectangle = new Rectangle(x, y, width, height); Content = null; IsOpen = false; HasFrame = true; Resizable = true; Dragable = true; Title = "Form"; ResizeHandlePosition = Corner.BottomRight; ResizeHandle = new Handle(ResizeHandleFrame, false); }
public void Show() { IsOpen = true; if (HasFrame) { DragHandle = new Handle(TopHandleFrame, true); } else { DragHandle = new Handle(FormRectangle, true); } }