Creating Your Own MEF-Based Editor Extension
You have now learned all the ingredients necessary to build your own extension. Let’s walk through a simple example, end to end, and build an extension that displays some basic code metrics in a window in the corner of the editor. Functionally, you need to accomplish the following:
Compute the required code stats by parsing the currently loaded code file
Expose a set of properties on a WPF user control to hold those metrics (and which also displays those metrics)
Display the WPF user control as an ...
Get Microsoft Visual Studio 2015 Unleashed, Third Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.