Click here to Skip to main content
11,929,675 members (50,317 online)
Click here to Skip to main content
Add your own
alternative version


3 bookmarked

Accessing image from Resource File in XAML markup

, 9 Mar 2011 CPOL
Rate this:
Please Sign up or sign in to vote.
Accessing image from Resource File in XAML markup
Suppose we have an image in our Resource file named as LeftBaseTriangle.bmp.

In order to access it via XAML, all we need is to add a reference to project properties like below:

and add the following code:

<image source="{Binding Source={x:Static properties:Resources.LeftBaseTriangle}}" />


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Mahmudul Haque Azad
Software Developer (Senior) Vizrt Bangladesh
Bangladesh Bangladesh
I am truly versatile and 360 degree Engineer having wide range of development experience in .NET and Java Platform. I am also proficient in system level programming in C++. To me technology is not at all a problem, it’s the client requirement that matters! That is I am ready and comfortable to use any technology to make the business of my client a success.

In my five years of experience I have the opportunities to work for fortune 500 companies of US and many renowned clients from Europe.

My Linkedin Profile:

You may also be interested in...

Comments and Discussions

QuestionNot working Pin
mikefulton8-Apr-15 13:32
membermikefulton8-Apr-15 13:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.151126.1 | Last Updated 9 Mar 2011
Article Copyright 2011 by Mahmudul Haque Azad
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid