iOS Question Tabstrip colours at runtime

Andrew (Digitwell)

Well-Known Member
Licensed User
Longtime User
Hi,
Is it possible to control the colour of the tabstrip "Bar Colour" and "Selection Indicator colour" at run time?

Thanks
 
You can use this code to change the colors:
Code: Copy
Dim no As NativeObject = TabStrip1
no.GetField("buttonBarView").SetField("backgroundColor", no.ColorToUIColor(Colors.Red))
no.GetField("buttonBarView").GetField("selectedBar").SetField("backgroundColor", no.ColorToUIColor(Colors.Blue))
 
Upvote 0
Back
Top