Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
460
Make the tab flash when content changes
posted

Is there a way to make the tab flash when the content changes.  I have an app that will be updating multiple tabs and would like to visually notify the user that some data has changed by changing the tabs look without making it come to the foreground.  A background color change or font change or a flashing background.  Can this be done?

 

Thanks

Parents
No Data
Reply
  • 54937
    Offline posted

    There is nothing in the control to do this for you but you could probably write your own code to do this. Perhaps you could create an attached property that you set on the ContentPane when you change the Content (or use a derived ContentPane and have it set this property itself from the OnContentChanged - just be sure to call the base) and then clear that property at some later time. Then create a style for the PaneTabItem that binds to that property off the ContentPane (the PaneTabItem exposes the CP via its Pane property) and sets a property (e.g. Background) on the PaneTabItem. Or if you just want to change the font then perhaps instead of a new PaneTabItem style you would create a DataTemplate for the TabHeaderTemplate and in there bind to that property (using a relativeSource findancestor to get to the ContentPane) and change the font as needed.

Children