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 one solution in VS2010 containing two MVC 3 projects. These are two
I have a VS2010 solution that has two projects. The first project [DevLib] is
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 two unit test projects in my VS 2010 solution. Each project has
I have a solution in VS2010 with 3 projects: WCFServiceLib - a project created
I have a web solution (in VS2010) with two sub-projects: Domain which holds the
I have a VS2010 solution with several projects in it. These projects are winforms
I have a big VS2010 solution, which contains a bunch of C# projects. One
I have a C# solution in VS2010 that contains three projects. This solution has

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.