my wpf application have a problem with windows vista Aero theme.
whereas in other themes it seems correct. i.e.
i can not upload all my code. but i reviewe it several times. and i'm sure that all i do is correct.
what is wrong?
I am having something similar occur. Only on Vista. Works fine on XP.
My issue will sometimes render wierd like yours is doing, but it will actually pretty much lock the UI and take up all the CPU. It has somethign to do with rendering and measuring the size of child items. I have tried to create a sample app that can duplicate the issue, but it seems to work with the sample. I dont understand why it can work fine on Windows XP, but falls on its face with vista.
I have narrowed it down to either the Dockmanager or the Ribbon control and its something to do with the Scrollviewer (also happens on a treeview, but works fine as soon as scrollbars appear on the treeview).
EDIT: I just changed my theme to windows classic, and it works great! so its something to do with windows vista and Aero.
I need some help to get this fixed. I cant really give you guys the code either.
unfortunately i can not upload my application. but i check all, and all of my codes are correct.
but it also happens for me.
My UI alos locks.
i also try to create a sample application but it seems to work with the sample.
yes. i am using scrollviewer inside xamdockmanager and make use MVVM pattern.
OK,
Well i have figured out its the XamRibbonWindow and databinding cuasing the issues.
I dont know why yet. But if i dont use databinding to the viewmodel and create the treeviewitems in XAML, it will work just fine, as soon as i databind the treecontrol, wierd stuff starts to happen. IE cant select a node in the tree, UI locking up, and ribbon buttons half grayed out etc...MeasureOverride is also being called a ridiculous amount of times, which is what cuasing the UI to lock.
Its not just treeview though, its even on a data entry form with nothing but textboxes all databound to the viewmodel. It ONLY cuases issues on the data entry form, when i have a scrollviewer wrapped around the content of the form. If i don thave scrollviewer wrapping it, it works as expected.
If i dont use the XamRibbonWindow, then everything works fine, just like it does on XP.
Can you provide a sample that demonstrates the issue?
I hacked up a copy of my project to try and narrow it down. Know that i know whats cuasing it, ill try and get ya a sample asap.
Andrew,
i created sample project showing the 2 issues im having. I submitted it as support request.
case# CAS-27705-4F33U8
THanks
Hello,
The issue in this case : CAS-27705-4F33U8, which answerrox has submitted to us has been resolved with the latest service release (2091). Please make sure that you are using it.
Is an interim patch available for this issue? It causes our application to be unusable when Aero is enabled.
Thanks for submitting this. I think both issues are related. It should be addressed in the next hotfix.