Folks (is this group alive?)
When putting context menu items on controls inside my app window I add this:
CommandTarget="{Binding Path=PlacementTarget, RelativeSource={RelativeSource
FindAncestor, AncestorType={x:Type ContextMenu}}}"
Ages ago I found that this is necessary to allow the command to find the
binding target which is the parent app window. It was an early gotcha in
WPF.
Now I have a context menu in a modal dialog Window and the menu is always
disabled. It obviously can't find the app window as the command target. Does
anyone know of the correct syntax (if it exists) to allow a command in a
modal Window to be handled by the owner app window? I fiddled around with
variations of the code above but it does nothing. Web searches produce
nothing useful for me. I've wasted over an hour on this already (as usual).
Thanks
Greg
_______________________________________________
ozwpf mailing list
[email protected]
http://prdlxvm0001.codify.net/mailman/listinfo/ozwpf