How to set different colors to segments

2 posts, 0 answers
  1. Waqas
    Waqas avatar
    2 posts
    Member since:
    Apr 2013

    Posted 18 Oct 2017 Link to this post

    Is is possible to set different colors to segments?
  2. Stefan Nenchev
    Stefan Nenchev avatar
    665 posts

    Posted 20 Oct 2017 Link to this post

    Hello, Waqas,

    The functionality is not available for the SegmentedControl. However, a good alternative is the RadTabView, where you have full control of the headers and you can set different ControlTemplates. You can find more information on how to achieve the behavior in the RadTabView at the following article - TabViewHeaderItem. There is also an actual example in the SDK Samples Browser application(the solution can be found in your local Telerik UI for Xamarin installation, in the Examples/XamarinForms folder). It is labeled TabViewHeaderCustomTemplateExample.

    I hope the information provided was useful. If you have any further questions or concerns, do not hesitate to contact us.

    Have a great rest of the week.

    Stefan Nenchev
    Progress Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top