You can customize the appearance of the TabControlAdv while HotTracking. This can be achieved by handling the event, DrawItem in the TabControlAdv. The argument, DrawTabEventArgs gets the data for the Syncfusion.Windows.Forms.Tools.TabControlAdv.DrawItem event handler in the TabControlAdv. Within this event handler, check whether the TabItem is being HotTracked, and when it is, set the desired forecolor and backcolor to the DrawTabEventArgs object.
The arguments contain all the necessary information that helps the user to paint the specified tab item. The following are the properties and functions.
The following code example demonstrates the same.
Note: The property named “HotTrack” in TabControlAdv changes the appearance of the TabPageAdv when the mouse passes over them.
Figure 1: Before enabling the HotTrack property
Figure 2: After enabling the HotTrack property
Figure 3: Before customizing the appearance of the TabPageAdv when HotTrack property is enabled
Figure 4: After customizing the forecolor and backcolor of the TabPageAdv when HotTrack property is enabled
Figure 5: After customizing the appearance, HotTrack enabled and Forecolor, BackColor and Font specified
|Article ID:||Published Date:||Last Revised Date:||Platform:||Control:|
or the page will be automatically redirected to sign-in page in 10 seconds.