RSS Log in
 

Relative Paths in T4 Templates

Published 3/31/2010 by pascal
In my previous post, I showed how you could use a T4 template within Visual Studio to generate a C# ImageLibrary class based on a WPF file called ImageResources.xaml. If you want to do something similar but the resource file is not in the same folder as the template, you should refer to it using its... [More]

Adding an image in WPF is very straight forward. All you need to do is declare an Image element in XAML and specify the path of the image in the Source attribute: <Image Source="about.png" /> But rather than deploying all your image files with your application, you might want to embed them in ... [More]

© Copyright 2012 TheBooleanFrog Powered by: BlogEngine.NET|Credits|Subscribe via RSS

Follow

twitter linkedin linkedin rss

TheBooleanFrog

Programming sticky notes and other distractions...