I am experimenting with a Visual Studio 2010 extension, where I need to work with the events exposed by IMouseProcessor.
As far as I can tell from the docs, I should
It took me a while to find the complete solution to this problem, so I will post the complete solution here:
All in all, this code works:
[Export(typeof(IMouseProcessorProvider))]
[ContentType("code")]
[TextViewRole(PredefinedTextViewRoles.Editable)]
[Name("mouseproc")]
internal sealed class MouseProcessorFactory : IMouseProcessorProvider
{
public IMouseProcessor GetAssociatedProcessor(IWpfTextView wpfTextView)
{
return new MouseProcessor();
}
}