How do I change the appearance of the check box of a particular node.
I have a handle on the UltaTreeNode where can I set the the background color of the check box area only and /or the check mark itself?
For example, it is curently defaulted to green
Hi,
I'm not sure what you mean? What is currently defaulted to green? Are you talking about the area inside the box? Is this a checkbox in a cell or a checkbox on the node?
You normally cannot apply colors to a checkbox, they are usually drawn by the system. If you are using the latest version of NetAdvantage, a new GlyphStyle property added in v8.2, but this property would affect all checkboxes in all Infragistics controls, there's no way to change the appearance of a single checkbox on a single node via a property. The only way to do that would be to use a DrawFilter and draw the CheckBox yourself. Or use an UltraCheckEditor control in CustomStyle and use images for the checked states.
What version of the controls are you using?
Actually, I don't think the Custom Style UltraCheckEditor will work here because UltraWinTree doesn't use editors for the CheckBoxes you are showing in your screen shot here.
So that leaves either Glyphs or a DrawFilter. If you are using v8.2 or higher, you can use the new GlyphInfo property.
If not, then you will need to use a DrawFilter. If you are not familiar with DrawFilters, search the Infragistics Knowledge Base and you will find lots of articles and samples. Also, get the Infragistics UIElementViewer Utility. It's a huge help when working with UIElements.
I doubt there is any difference between using GlyphInfo and using a DrawFilter. If anything, DrawFilter is probably faster, assuming it is written efficiently. :)