rds1983 / Myra

UI Library for MonoGame, FNA and Stride
MIT License
728 stars 94 forks source link

Add TabSelectorPosition to TabControl #312

Closed minimalism closed 3 years ago

minimalism commented 3 years ago

This adds a TabSelectorPosition property to TabControl which allows you to specify if the tab buttons should be positioned on the top (default), right, bottom or left of the TabControl content.

The logic is implemented in the TabSelector setter. It can probably be improved on by somebody with a better understanding of how the Grid widget works, but in my tests it gets the job done.

I'll keep this PR updated if I discover any issues while using this control.

rds1983 commented 3 years ago

thanks, @minimalism!