in the appstylist I found the "HotTrackSelected" state that changed my forcolor to the one that I wanted.
To overwrite the forecolor for each tab page I changed the resulutionOrder to: ControlThenApplication
How can I programatically found that "HotTrackSelected" ?
I see and can change all other states for example:
ultraTabControl1.ActiveTab.ActiveAppearance.ForeColor = Color.FromArgb(0,146,208);
That Change only the forcolor, if I move the mouse away from the selected tab.
I try things like that:
ultraTabControl1.HotTrackedTab.Appearance.ForeColor = Color.FromArgb(0, 146, 208);
ultraTabControl1.Tabs.HotTrackAppearance.ForeColor = Color.FromArgb(0, 146, 208)
but I need something that not exists:
ultraTabControl1.HotTrackedSelectedTab.Appearance.ForeColor = Color.FromArgb(0, 146, 208);
ultraTabControl1.Tabs.HotTrackSelectedAppearance.ForeColor = Color.FromArgb(0, 146, 208)
I am unsure of exactly why you are unable to find the HotTrackSelectedAppearance property of the UltraTab instances that exist in your UltraTabControl. This property does exist in the latest version of Infragistics for Windows Forms 2017.2, and as it sounds like you are looking to apply different hover-colors to the UltraTab elements depending on whether or not they are selected, this should achieve the functionality you are looking to achieve.
It is also possible that you are using a different version than the latest version of Infragistics for Windows Forms. If so, it may be helpful if you can list the version number of the controls that you are using. I am attaching a sample project that demonstrates usage of this property. This sample project was built against version 17.2.20172.2006 of Infragistics for Windows Forms 2017.2.
Please let me know if you have any other questions or concerns on this matter.
yes the Version, that is my issue. I'm using V12.1 not 17.2 and it looks like in V12.2 exactly this property is missing.
Now I have a bigger issue, I can't update to 17.2.
But thank you for your help finding the issue.
PS: Before you ask why I can not update. Most of my colleagues sit in the US and use Telerik. My Manager from US said: With no issues you can use you Infragistics. (We only develop Tools internally for our own employees and not sell it) But if you will find an issues please update to Telerik he said. --> Infragistics update will cost: 1495$ and a new full Version of Telerik will us cost 1499$. So I have no argument to update. :(
While it is unfortunate that you cannot update to version 17.2, I would like to offer a workaround in that in 12.2.
If you handle the SelectedTabChanged event of the UltraTabControl, you can catch when your tab becomes selected or deselected and modify its HotTrackAppearance there. The event arguments of this event can net you the previously selected tab and the newly selected tab, in which case all you have to do is toggle the HotTrackAppearance.ForeColor property based on the selected state.
I have attached a modified version of the sample project I originally sent you to demonstrate this.