Alessandro Del Sole's Blog

/* A programming space about Microsoft® .NET® */
posts - 159, comments - 0, trackbacks - 0

My Links

News

Your host

This is me! This space is about Microsoft® .NET® and Microsoft® Visual Basic development. Enjoy! :-)

These postings are provided 'AS IS' for entertainment purposes only with absolutely no warranty expressed or implied and confer no rights.

Microsoft MVP

My MVP Profile

I'm a VB!

Watch my interview in Seattle

My new book on VB 2015!

Pre-order VB 2015 Unleashed Pre-order my new book "Visual Basic 2015 Unleashed". Click for more info!

My new book on LightSwitch!

Visual Studio LightSwitch Unleashed My book "Visual Studio LightSwitch Unleashed" is available. Click the cover!

Your visits

Follow me on Twitter!

CodePlex download Download my open-source projects from CodePlex!

Article Categories

Archives

Post Categories

.NET Framework

Blogroll

Help Authoring

Microsoft & MSDN

Setup & Deployment

Visual Basic 2005/2008/2010

XAML Code Snippets, a new addin for VS 2010

I just published onto CodePlex a new WPF project, an addin for Visual Studio 2010 which allows adding and exporting XAML code snippets and that is supported by both WPF and Silverlight editors. You simply need to right click inside the XAML code editor and select the command you need (insert or export). The addin uses the classic .Snippet file format and the code is saved (or read) as XML. I took this approach to maintain compatibility with the VS .Snippet format.

Screenshots, getting started instructions and the source code, in Visual Basic 2010, are available in the project workspace here.

Since the XAML editor does not natively support code snippets, differently from VB/C#, there are some limitations. For instance, I built a couple of dialogs so there are no popups like in managed languages and there are no replacements: the XAML code editor isn't able of recognizing them, so adding replacements in code would result in errors.

Of course there are several improvements for future releases, such as grouping commands into submenus, implementing XAML preview, popups instead of dialogs and other interesting things but this is just the first release and I would appreciate your feedback to understand if the project is useful before planning other features.

Alessandro

Print | posted on giovedì 25 marzo 2010 01:47 | Filed Under [ Visual Studio 2010 Visual Basic Windows Presentation Foundation Visual Studio Extensibility ]

Feedback

No comments posted yet.

Post Comment

Title  
Name  
Email
Url
Comment   
Please add 4 and 5 and type the answer here:

Powered by:
Powered By Subtext Powered By ASP.NET