-
Notifications
You must be signed in to change notification settings - Fork 326
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
[Bug] Utilizing CompositeCollection for AnchorableContextMenu is not possible due to bindings resolving to wrong context #200
Comments
Hi, thank you for your detailled report but I am not sure what I should do with it, yet :-( since I have no demo project showing the behavior you report above and I am also not sure where you want to apply the Could you please re-test this issue as we have fixed an issue in VS2013 with the ContextMenu in Version 4.4? Thank you. |
Will do tomorrow. If you could tell me where to Look theese Kind of things up (afterall.. The project is rather complex) I will also gladly fix the stuff and create a PR 😉 probably will find plenty more problematic spots due to the recent move from xceed to this. Will append the corresponding full file tomorrow too. |
I am not sure what you mean by 'these kind of things' - the project is complex I know but it should be possible to describe an issue such that it is possible to verify a problem and right now I am not even able to verify the issue since the demo projects in the repository work fine and do not seem to exhibit the binding issue you report. So, to enable me to verify/understand an issue you could either:
From there I just need to understand what fix (if you already have any) needs to be applied where. The best way for this is to author a pull-request - here is a short description of a pull request I've written earlier but you usually find tons of content when you search for it on the Internet. You could avoid a pull request, if your suggested change is simple and easy to implement by refering to an existing code portion of code in the master branch of this repository and simply saying I suggest to fix this by replacing it with 'xyz' (see this for details). Lastly, I've tried to collect a lot of information on the architecture of this project in the Wiki section - please refer to this for a basic understanding. Let me know if you are missing information on anything else and I'll try to chase it up for you if I can, thanx. |
Trivia
Changing from xceed AvalonDock to this, i am facing some issues i am right now tracking down.
One of them was, that the custom-context-menu extensions no longer have been working.
After investigating further, i found out that this is being caused by the ContextMenu no longer having the correct DataContext set.
Steps to Reproduce
0.1 Create some WPF project and setup AvalonDock inside of it
0.2 Add an Anchorable
0.3 Add some DataContext that exposes some bindable
ICollection<MenuItem>
0.4 Add any demo
MenuItem
inside of that collection0.5 Bind to that property inside AnchorableContextMenu, using a CompositeCollection
Expected
Actual
Notes
If the CompositeCollection is removed and the property is bound to directly using
<ContextMenu ItemsSource="{Binding DataContext.Model.MenuItems}"/>
, the binding gets resolved proper though.Attachements
The text was updated successfully, but these errors were encountered: