Hello,
I've tried changing forecolor of the splitbutton but it's not changing and reverts back to black. I'm attaching a project. Please check.
Hello,
Thanks for replying and I've already gone through this documentation and I already know that I can write a custom renderer If I want to change the styling of the SplitButton. But the point is, I'm allowed to change the font, resize it, also I'm allowed to change the background color of the SplitButton. But just to change the ForeColor , I have to go all the way writing a custom render which seems very unnecessary and time consuming task for something as small as simply changing some color property.
Also, Writing a custom render could be helpful where you'll be applying same style to multiple controls which could be the case of theming an entire application. But I only want to alter one single SplitButton for which custom renderer is just an Overkill.
Can you please add it to Improvements or feature request that we can change the ForeColor of the SplitButton from the properties window.
|
//For focus state
this.splitButton1.ThemeStyle.SplitButtonStyle.FocusedForeColor = Color.Red;
//For normal state
this.splitButton1.ThemeStyle.SplitButtonStyle.ForeColor = Color.Yellow; |
Hello thanks for the reply but this is not working for me. I guess there could be an issue in the assembly (18.4.0.39) That I'm using. I didn't really wanted to update as it would force me to update all the packages to avoid any assembly mismatch. But I guess I have to do it.
I also tried toggeling CanOverrideStyle property in order to make ThemeStyle Work but it also didn't work.