Using dynamic resource to set background color of overflow tab and overflow text

Hi, I am trying to achieve selected behavior when using SfTabview with some overflow tabs. I have set my visible header amount to 3, so I can see the overflow tab. I thought to use a dynamic resource to set the color, then use the selection changed event to update the color. See my sample code below. It is not working. Even on first load, the color is showing white. Its not being set to the color I associate in the dynamic resource ("Orange" in the below example). I have verified that the selection change event is working as expected and is updating the dynamic color (I associated with a different element on the page to verify this).

Xaml code:
...
<ResourceDictionary>
     <Color x:Key="selectedOverflow">Orange</Color>
</ResourceDictionary>
...
<tabview:SfTabView.OverflowButtonSettings>
     <tabView:OverflowButtonSettings BackgroundColor="{DynamicResource selectedOverflow}" />
<.tabview:SfTabView.OverflowButtonSettings>

______________________________________________________________________

Code behind file:
 private void SfTabView_OnSelectionChanged(object sender, SelectionChangedEventArgs e)
{
     var selectedIndex = e.Index;
     if (selectedIndex > 2)
     {
          this.Resources["selectedOverflow"] = Color.Blue;
     }
     else
     {
          this.Resources["selectedOverflow"] = Color.Orange;
     }
}

______________________________________________________________________

Please advise. Is dynamic resource not supported for setting colors on SfTabView?

George


1 Reply

PA Paul Anderson S Syncfusion Team August 24, 2018 12:38 PM UTC

Hi George, 
 
Thanks for using Syncfusion products. 
 
Query: ” Using dynamic resource to set background color of overflow tab and overflow text ” 
 
We have analyzed the reported requirement. In our current implementation we don’t have a support for the TabView items, so it will not work for OverflowButtonSettings and we can assign only StaticResource. We have already logged a feature report for this requirement this will be available at any of our upcoming release. 
 
Please let us know if you have any other concern. 
 
Regards, 
Paul Anderson 


Loader.
Up arrow icon