开发者

Controls appear inactive when changing content

I'm using a Cont开发者_StackOverflowentControl to display various ViewModels, which all use DataTemplates for view generation.

Now the problem is, after i change the content (by clicking on a hyperlink for example), things such as hyperlinks appear inactive (i.e. grayed out), until i click on the UI again. Is there any way to avoid this behaviour without having to simulate a mouseclick?


I'm having the same a very similar problem and haven't yet fixed it, but it does sound like calling CommandManager.InvalidateRequerySuggested() might help you out.

Here's my question this week that is similar, I think. unforgiven3 linked me to his question as well.

Although there might be some question about whether or not the CommandManager route is the way to go, as I mentioned in my question's edited text, Laurent Bugnion's MVVM Light Toolkit relies on this mechanism to do his command binding updates.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜