ContextMenu
ist not part the the Visual Tree and so FindAncestory
data binding won't work.
You could set the DataContext
on the ContextMenu
explicitly though.
e.g. you could create an instance of your ViewModel / DataContext directly in XAML if that's an option.
Or get it from a StaticResource
.