public void Draw() { if (IsVisible) { // Caption if (Caption != null) { ControlMgr.Instance.SpriteBatch.DrawString(Font, Caption, new Vector2(DrawRect.X - 6 - Font.MeasureString(Caption).X, DrawRect.Y), CaptionColor); } // BG and button ControlMgr.Instance.SpriteBatch.Draw(Common.White1px, DrawRect, BGColor); ControlMgr.Instance.SpriteBatch.Draw(DropDownBtnTex, DropDownBtnRect, Color.White); if (IsCollapsed) { if (SelectedIdx != -1) { // Draw selected item ControlMgr.Instance.SpriteBatch.DrawString(Font, Items[SelectedIdx].ToString(), Location, FontColor); } } else { // BG //ControlMgr.Instance.SpriteBatch.Draw(Common.White1px, ExpandedRectangle, BGColor); // Text TextScroller.Draw(ControlMgr.Instance.SpriteBatch); } DrawChildControls(); } }