hi,
I am using an ultracheckeditor as a toggle button within my application. To do this i am setting the style of the ultracheckeditor to "button" as opposed to the standard "check". It works fine except that the appstyling is not applied to the resulting button.
If the control is left with a style of "check" the appstyling is applied fine...
Am i missing something.. or there something else i need to do to get it to pick up the appstyling...
Ray
Hi Ray,
I tried this out and it works just fine for me. What UIRoles are you trying to use here?
Once you change the Style of the UltraCheckEditor to button, it no longer serves as a CheckBox in terms of the UI, it becomes a state button. So the styling comes from the Button UIRole. You can use the Checked/Unchecked states of the Button UIRole to style it.
Mike,
I hope i have this right. From what i can see the Ultracheckeditor uses the "ToggleButton" property under the "Button" UI Role.
If i set the relevant properties on the "Button" property the button appears as you would expect on the form. However i didn't want to use the "Button" property as it effects other controls as well. If i set the "ToggleButton" property I do not get the expected effect.
Is the "ToggleButton" property the correct one to use....
Hello Raytmond,
Please check in the *.ISl file if the appearance of ChechBoxEditorWithButton is managed to your requirements.
Open your *.ISl in “Style Explorer ” expand folder “UI Roles”, expand “Base” node, go to Editor -> CheckEditorBase select ChechBoxEditorWithButton. In properties explorer go to “ Cheeked ” to manage the appearance when button is cheeked. Do the same for
“Unchecked” and “Indeterminate” tab. Save *.ISL file and load it in your application.
Let me know if you have any further questions.
Sincerely,
Hristo
Developer Support Engineer
Infragistics, Inc.
www.infragistics.com/support
Hristo,
That seems to do the job. The only issue is that it does not apply the Default button style. If you take for example the "Office2007Blue.isl" file, you need to go back up the tree and select "base" in order to apply the flatborderless button style. The problem with this is that this has effects on other controls in the isl file when you apply it at base level....
It would be nice to be able to edit the buttonstyle on the CheckEditorWithButton. I suppose the real issue here is that CheckEditorWithButton is under the Editor hierarchy when it should probably be under the Button hierarchy (although it would not fit 100%)...
Regards
Hello Raymond,
In AppStylist ChechEditorWithButton is child of Base appearance and this means that ChechEditorWithButton will override Base appearance. And when you set it on the ChechEditorWithButton you will see it changed. This is actually I was trying to explain in my previous post:
“Open your *.ISl in “Style Explorer ” expand folder “UI Roles”, expand “Base” node, go to Editor -> CheckEditorBase select ChechBoxEditorWithButton. In properties explorer go to “ Cheeked ” to manage the appearance when button is cheeked. Do the same for “Unchecked” and “Indeterminate” tab ”
Can you please check if this is what you are looking for or I am missing something of your question.
I discussed this behavior with my senior colleagues and with our Developer Team and we decide that this behavior is unexpected. So I logged it in our tracking system, with an issue ID of 57258.
In additional you can use as workaround two style library to avoid this behavior. How to do this you could see on the following link:
http://help.infragistics.com/Help/NetAdvantage/WinForms/2010.2/CLR2.0/html/Win_Loading_Multiple_Style_Libraries.html
I also created a case with number : CAS-54035-2FZYQ2 and our future correspondence will continue through this case.
Altering the ChechBoxEditorWithButton in the ISL file has worked in that i can apply a themed color to the button.. Your sample project is working exactly as i have here and it highlights the one remaining issue i have.
When you run your sample the ultrabutton1 and ultracheckeditor1 both have the sample color but not the sample look. ultracheckeditor1 is using the "default" button style while ultrabutton1 is using the "flatborderless" which i presume is being set in ultrabuttonbase...
All i was highlighting was that in order to have the ultracheckeditor1 as flatborderless, i need to go back up the tree to "Base" to set it as it is the first parent of ChechBoxEditorWithButton in the tree that has the "Button Style" property editable.....
Changing a property at base level in an ISL file can have dramatic changes to other controls and i just thought it would have been nice to be able to change the "Button Style"on the ChechBoxEditorWithButton entry. The other option is that maybe ChechBoxEditorWithButton should be a child of ultrabuttonbase in the ISL files, but i'm sure that would require some changes.....
Hope you see what i am getting at
Regards,