Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

How to: Change the Tab Background in DXTabControl when a Tab Is Selected, Focused Or Hovered

$
0
0

In DXTabControl, tabs have different colors when they are selected, focused, or hovered. In this example, it's demonstrated how to change the tab background for all these states. 
You can do this by using the following properties:
-DXTabItem.NormalBackgroundTemplate is responsible for the default tab item header background.
-DXTabItem.HoverBackgroundTemplate is responsible for the tab item header appearance when it is under a mouse pointer.
-DXTabItem.SelectedBackgroundTemplate is responsible for the tab item header appearance when it is selected.
-DXTabItem.FocusedBackgroundTemplate is responsible for the tab item header appearance when it is focused.

You can also customize DXTabControl's background using the BackgroundTemplate property.

If you wish to keep the default state effects, use the approach demonstrated at How To: Change Tab Background in DXTabControl and Keep the Default Gradient and Highlight Effects.

To learn more about appearance customization in DXTabControl, refer to Appearance Customization.


Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>