Home
Search
 
What's New
Index
Books
Links
Q & A
Newsletter
Banners
 
Feedback
Tip Jar
 
C# Helper...
 
XML RSS Feed
Follow VBHelper on Twitter
 
 
 
MSDN Visual Basic Community
 
 
 
 
 
TitleDisplay an image saved as a resource in WPF/XAML using Visual Basic 2008
DescriptionThis example shows how to display an image saved as a resource in WPF/XAML using Visual Basic 2008.
KeywordsWPF, XAML, Image, ImageSource, Pack, Visual Basic 2008
CategoriesWPF, VB.NET
 
Include the image file in the project and make sure it is set to Resource. Then loading the image into an Image control at run time is easy, once you figure out the bizarre syntax.
 
imgEarth.Source = New BitmapImage(New Uri("pack://application:,,,/Earth.jpg"))
 
 
Copyright © 1997-2010 Rocky Mountain Computer Consulting, Inc.   All rights reserved.
  Updated