Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
120
Force Refresh an Axis
posted

The label of my Y-axis is tied to a converter that sets the labels in either whole dollars, K dollars or M dollars. This functionality works initially but doesn’t refresh unless I resize the window or change the data being shown.

I’ve seen other people with similar problems on the forums (http://es.infragistics.com/community/forums/t/75986.aspx comes to mind), but the button that allows you to switch between the different labels isn’t a property, so I can’t bind to it. In order to change the label, my converter casts the value given to my custom object, then calls that object’s ToString which handles the formatting.

I’m hoping there is just a simple way to get the axis to force refresh in code behind, even without a noticeable change. I’ve tried all the typical UpdateLayout, InvalidateVisual, InvalidateMeasure methods in hopes that those would work, but they weren’t successful either.

Thanks in advance and let me know if more detail is needed.