-
Notifications
You must be signed in to change notification settings - Fork 321
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ActiveContent not switching correctly for floating window #135
Comments
I can verify the issue and extended the MVVMTestApp sample to make the issue more obvious. I can place a line like: into I am not sure this is bug. To me this looks more like a WPF limitation because I don't know how to distinguish this event from the real event when the user clicks inside the document(?). Do you have an idea how to handle this differently? |
I just cant figgure out why document is receiving focus when is not clicked. I expected, that properties panel should got focus not document |
Yes I do not have more information ever - the event is being raised by WPF and I do not know exactly why in this manner... |
Fixed in my pull request @Dirkster99 |
Looks good to me too :-) |
Hi,
i noticed another strange behavior, which can be easily reproduced in your MVVMTestApp.
In case you have atleast two documents (doc1, doc2) and some panel that displays content based on ActiveContent property of avalondock (FileStatsPanel).
Place doc1 as normal document
Place FileStatsPanel as side panel
Place doc2 as floating window
Then when you select doc1, FileStatsPanel displays data based on doc1 - ok
When you select doc2, FileStatsPanel displays data based on doc2 - ok
Steps
If you make steps 1,2,3 then fileStatsPanel will display content based on doc1 instead of doc2. So editing FileStats data for doc2 isnt possible in this case
if ou make steps 1,2,3,2,3 then fileStatsPanel will display content correctly.
When FileStatsPanel is as floating panel, everything works fine.
In my opinion, issue is based on changing ActiveContent to document when clicking from floating window into non-floating panel, then ActiveContent is changed to document that is in same window as non-floating panel. (can be observed by breakpoint in workspace.cs -> ActiveDocument setter (line 109?)
The text was updated successfully, but these errors were encountered: