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
50
RibbonTool.IsEnabled not refreshing the UI when done from a callback
posted

Hi,

I am pretty new to silverlight, so this may well be nothing to do with the control. I guess i should explain the issue first.

We have a XamRibbon with a number of RibbonTools in it at start up, I am able to then set the buttons IsEnabled as and when I like at runtime with RibbonTool.IsEnabled. This is all fine from the calling thread, but if I try to do this in a callback that's called as a response to an Asyn call to a web service, it still sets the value in the button, but the button still has the look of the last setting, until I pass the mouse over it.

So, for example, I have a RibbonTool and it's IsEnbled is set to false, so the button is greyed out, as expected, if I then set it to IsEnabled from with in a  callback, it stays greyed out until I pass the mouse over it.

I have tried calling the Tab the button's in UpdateLayout, have also called the ribbons UpdateLayout as well as the UserControl's UpdateLayout and also all three :S but still no joy.

Can you tell me what I am doing wrong and how I can get this button to display correctly in the UI when the IsEnabled member is set from within a callback method....

 

Thanks,

Charles

Parents Reply Children
No Data