Hi,
I am using a style library with the UltraTree control and I need to retrieve the resolved Override.NodeAppearance, Override.HotTrackingNodeAppearance, and the Override.SelectedNodeAppearance. How can I do this?
Thank You,Tracy
Hi Bozhidara,
Thank you for the code. That is exactly what I needed.
Tracy
Hi Mike,
I have a tree that uses drag and drop. I want hot tracking while doing a drag. I haven't found anyway the control does this automatically. I have to do it myself. I don't want to hard code the colors in the code. I want to get them from the style library.
I'm not sure I understand exactly what you are trying to get here. AppStyling affects the entire application, so it's not associated with any individual Override object since each Override affects different parts of the tree. As noted by Bozhidara, you could theoretically retrieve the StylingSetting information, that will only give you the individual UIRole settings and doesn't necessarily "resolve" the appearances that you will see in your application, since those include hard-coded defaults that are built into the control. There's isn't any way to get the resolved appearance of a node in s particular state (such as selected) without actually having a node in that state. There's no method to do that because the tree never needs to do that. But if you have a selected node in your tree control, you could call the node.ResolveAppearance method to get the resolved appearance properties for that node and that will include the app styling and the coded appearances and the defaults.