How to change the tabbed control tab color?

I want to customize tab control like following, Please help me

Best Answer

  • RamseemAbdulRahimRamseemAbdulRahim IN ✭✭
    Accepted Answer

    I use pivoteheaderitem style and pivot item style implicitily in uwp to customize the tab control as shown in the figure

Answers

  • RamseemAbdulRahimRamseemAbdulRahim INMember ✭✭

    Hi
    To achieve the above requirement. I create a CustomRenderer for Tab control in UWP. But Pivot styling is not working. So i try to customize uwp:FormsPivot but i can't able to access ItemTemplate, it use an internal class named FormsPresenter.
    We also try to define class MyFormsPresenter locally, but it cause an exception like "MyFormsPresenter " is not available.
    Is there any way to use uwp:FormsPresenter or local:MyFormsPresenter


    <Setter.Value>



    </Setter.Value>

  • RamseemAbdulRahimRamseemAbdulRahim INMember ✭✭

    We need to set TabbedPageStyle explicitly to control.style of MyTabbedPageRenderer. ``


    ...

    <Setter.Value>



    </Setter.Value>

    ...

  • RamseemAbdulRahimRamseemAbdulRahim INMember ✭✭
    Accepted Answer

    I use pivoteheaderitem style and pivot item style implicitily in uwp to customize the tab control as shown in the figure

  • ToniWojciakToniWojciak USMember

    Hello Ramseem,

    could you give an example how to do that? Iam trying to change the tabs in xamarin.forms uwp but i still don't get it work.

Sign In or Register to comment.