I have five UltraCheckEditors which have their Style property set to EditCheckStyle.Button.
I have an UltraButton on the same form.
The UltraCheckEditors have a blue border around them.
There are other differences in the appearance between the UltraButton and the UltraCheckEditors.
My goal is that the UltraButton and UltraCheckEditors have the same style and appearance, when the UltraCheckEditors are not in the toggled mode.
How can I accomplish this?
So far I have tried code lines like the following without any success:
ultraCheckEditor.UseOsThemes = DefaultableBoolean.False;
ultraCheckEditor.ButtonStyle = ultraButton.ButtonStyleResolved;
ultraCheckEditor.Appearance = ultraButton.Appearance;
Hello Burak,
Thank you for posting. Your code is looking correct to me except you disable the theme for ultraCheckEditor only.
I tried disabling the theme for both the controls and set the same ButtonStyle to them, now both the buttons looking same to me.The ButtonStyleResolved has no meaning at all if the button is using themes.
So if you try this code the UltraButton and UltraCheckEditors have the same style and appearance.
private void Form1_Load(object sender, EventArgs e) { ultraCheckEditor1.Style = EditCheckStyle.Button; ultraCheckEditor1.UseOsThemes = DefaultableBoolean.False ; // ultraCheckEditor1.ButtonStyle = ultraButton1.ButtonStyleResolved; //ultraCheckEditor1.Appearance = ultraButton1.Appearance; ultraCheckEditor1.ButtonStyle = UIElementButtonStyle.Button; ultraButton1.UseOsThemes = DefaultableBoolean.False ; ultraButton1.ButtonStyle = UIElementButtonStyle.Button; }
Please let me know if you need further assistance.
Sincerely,Divya JainAssociate Software Developer
Thank you for your answer, Divya.
We have an application with hundreds of UltraButtons and we'd rather keep their style and appearance as the current OsTheme, because our application is being used across multiple OS versions. That way our application blends smoothly with the rest of the programs on whatever OS version we install it.
Now, I'm adding five UltraCheckEditors as buttons. I want the UltraCheckEditor buttons to have the same style and appearance as the other UltraButtons.
So in essence, I need the UltraButtons to use the OSTheme, and the UltraCheckEditors as buttons to have the same appearance as the UltraButtons.
Is there a way to do that?