Skip to Content
Hidden WPF: Secrets for Creating Great Applications in Windows Presentation Foundation
book

Hidden WPF: Secrets for Creating Great Applications in Windows Presentation Foundation

by Alessandro Del Sole
February 2013
Beginner to intermediate
68 pages
1h 50m
English
Sams
Content preview from Hidden WPF: Secrets for Creating Great Applications in Windows Presentation Foundation

Using XAML Code Snippets

As you probably know, the code editors for both Visual Basic and Visual C# allow you to add reusable code snippets. In the code editor, right-click and then select code snippets from the appropriate category, as shown in Figure 1.2.

Image

Figure 1.2. Inserting code snippets.

To manage the code snippets library, choose Tools > Code Snippets Manager. Unfortunately, no XAML counterpart is available, so you’ll need a custom way to manage your XAML code snippets. Let’s look at a couple of available alternatives.

Adding XAML Code Snippets to the Toolbox

The simplest way to store code snippets for later reuse is by dragging the code ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Pro WPF in C# 2010: Windows Presentation Foundation in .NET 4

Pro WPF in C# 2010: Windows Presentation Foundation in .NET 4

Matthew MacDonald
WPF in Action with Visual Studio 2008

WPF in Action with Visual Studio 2008

Arlen Feldman, Maxx Daymon

Publisher Resources

ISBN: 9780133432473