I'd like to create an extension for XAML (WPF) which will work like this:
In a XAML file, when you right click on an element tag (i.e.<Button>
) the context menu will show an option to refactor the element.
What is the general approach for this? How do I access the element where the cursor is?
Generally, which features from Visual Studio extension development do I need?
Any code examples would be great.