I want to detect whether user is interacting with Mouse or Finger in my WPF application based on that I want to change my UI(Changing the Context Menu style-more easy interact in touch).

Is there any class available in C# or any native methods are available to find that?