Added support for context menu in WPF
Cleanup OnBeforeContextMenu code
Merge pull request #568 from Bodekaer/feature/wpf-contextmenu

Added support for context menu in WPF