Closed Machaira closed 1 year ago
Hi, The MML you've provided is incomplete. Though it looks fine. There's stock tab sample MML: https://github.com/rds1983/Myra/blob/master/samples/UI/tabs.xmmp I've pasted it into MyraPad and the TabControl worked as expected(you could switch tabs through clicking).
btw, I recommend moving call of desktop.Render() beyond spriteBatch.Begin()/spriteBatch.End().
Can you let me know what's incomplete about it? I must be missing something. :(
Oh, it was complete actually. Though for some reason, the browser showed me only part of it. Anyway, both tabs of your TabControl have same content. Hence there's no change when switching between tabs.
You are correct. My error. :( TabControl works correctly.
I have the following MML:
The rendering is done by a base class:
` public override void Draw(GameTime gameTime) { ScreenManager.GraphicsDevice.Clear(ClearOptions.Target, Color.Black, 0, 0);
Which shows as
Clicking the 2nd tab does not change what's rendered inside the TabControl. Is this normal? Is there something I should be doing to change what's rendered inside the TabControl?