Added support for context menu in WPF