Skip to content

Is there a way to change the background of the Image inside the TabView? #65

Closed Answered by naveenkumar-sanjeevirayan
xDaijobu asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @xDaijobu

Thank you for reaching out.

Currently, the SfTabView does not have built-in support for changing the image background color using properties like SelectedImageColor or UnselectedImageColor. However, this behavior can be achieved through a workaround using VisualStateManager and FontImageSource.

Below is a sample implementation to help you dynamically change the image color based on tab selection:

<Style TargetType="tabView:SfTabItem">
    <Setter Property="VisualStateManager.VisualStateGroups">
        <VisualStateGroupList>
            <VisualStateGroup>
                <VisualState x:Name="Normal">
                    <VisualState.Setters>
                        <Setter Pr…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by naveenkumar-sanjeevirayan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants