I have a column which has some cells that have their Style property set to Button. In my CreationFilter I want to change the text in the ButtonUIElement but it has no Text property? The reason I want to do this is that I need to be able to indent the text with a few space characters without changing the underlying data. The level of indent depends on a complex bit of logic so I figured the CreationFilter is the way to do it. How do I do I change the text on the ButtonUIElement?
Any ideas?
The ButtonUIElement class actually does expose a Text property. It would seem possible that you are referencing the instance as a UIElement, which is the base class from which all elements derive, and does not expose a Text property. If this is the case, you just have to upcast this reference to type ButtonUIElement.