Is there a way to change the background of the Image inside the TabView? #65
-
Hi, is it possible to change the background of the Image inside the TabView? For example, using selectedImageColor or unselectedImageColor. One of the approaches I’ve tried is creating an ImageSource property for each tab and changing its value (along with the color) when the tab selection changes. However, that solution didn't work. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
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:
![]() Let us know if you need assistance adapting this approach to your scenario. Regards, |
Beta Was this translation helpful? Give feedback.
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: