Mouse position in xaml - wpf
binding, command, mouse, wpf
Solution
In WPF, there is no Mouse.Position. If you look at the Mouse class members, the closest thing is Mouse.GetPosition, which returns the position relative to some UI element.
I would recommend using the UI element itself as the Command Parameter, and having your Command call `Mouse.GetPosition` to retrieve positioning, if this is required in your DataContext for some reason.
Problem
Is it possible to specify the position of the mouse as the value of the Parameter property of a Command in XAML. Something like the following: ``` <UserControl.ContextMenu> <ContextMenu> <MenuItem Header="Create Link" Command="{Binding CreateLink}" CommandParameter="{Binding Mouse.Position}" > </MenuItem> </ContextMenu> </UserControl.ContextMenu> ```