private void RefreshBorder() { if (HasBorder) { Border.Cleanup(); Border.DrawRect( new CCRect(0, 0, ContentSize.Width, ContentSize.Height), new CCColor4B(0, 0, 0), BorderSize, new CCColor4B(255, 255, 255)); } }