Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 760265
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T15:41:47+00:00 2026-05-14T15:41:47+00:00

I have a VS2010 solution with 5 projects. Two of these projects are called:

  • 0

I have a VS2010 solution with 5 projects. Two of these projects are called:

MyResources
Application

The Application project contains all of the views and viewmodels for the application to run, and the Resources project contains all the images, resource dictionaries, etc for theming and skinning.

The way I have images set up in Resources, I have their build action set to Content, and Copy set to Copy Always. In my Application project, I reference these files using a pack URI. Example:

"pack://siteoforigin:,,,/Themes/DefaultTheme/BackgroundImage.png"

This works fine for me. The themes folder and all its subfolders are properly copied to the proper folder since I’m using siteoforigin://.

However, this breaks Blendability. When I load the project in Blend 4, I get errors.

If I use siteoforigin, Blend tries to load the images from the executing folder of blend.exe (In this case, C:\Program Files\Microsoft Expression\Blend 4 Beta\Themes\Default_Theme\BackgroundImage.png”)

If I change the pack URI to the following:

pack://application:,,,/IQ.IQKiosk.Resources;component/Themes/DefaultTheme/BackgroundImage.png

It tries to look for the image in “themes/default_theme/backgroundimage.png”

If I try:

/MyResources;component/Themes/DefaultTheme/BackgroundImage.png

It tries to look for the image in “C:\MyResources;component\Themes\DefaultTheme\BackgroundImage.png”

If I try:

/Themes/DefaultTheme/BackgroundImage.png

It tries to look for the image in “C:\Themes\DefaultTheme\BackgroundImage.png”.

So now I’m stuck. I’m not sure how to reference my images without having to embed them into the resource project, and I can’t hard code the directory because my other coworkers have the project in different folders as well.

I tried to think of a way to get the proper URI to the proper locations of the files (relative to the .sln file would be awesome) or have the files get copied over to where blend compiles and executes the project. Alas, I am unable to figure out how.

Does anyone know the proper way to get these images to load?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T15:41:47+00:00Added an answer on May 14, 2026 at 3:41 pm

    I figured it out. Instead of using a pack URI, I just used

    new Uri(Environment.CurrentDirectory + "\\Themes\\DefaultTheme\\BackgroundImage.png")

    and it found the proper folder, since Evironment.CurrentDirectory gave me the proper bin folder where my themes were copied to.

    Huzzah!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have wrote an application that consists of two projects in a solution, each
I have a VS2010 (RTM) solution which contains: WCF Service project Console WCF client
I have a ASP.NET MVC2 project in VS2010 that can be deployed in two
I have a VS2008 Professional solution that I tried to convert to VS2010 Professional
I must be missing something, i have VS2010 Premium. Under Templates, Test Projects ->
Came across this curiosity recently. One solution, with two projects within it (ORM and
I have been using VS2010 without any issues, always on the same application. Suddenly
Have you guys had any experiences (positive or negative) by placing your source code/solution
Have you used VS.NET Architect Edition's Application and System diagrams to start designing a
Have a n-tire web application and search often times out after 30 secs. How

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.