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 265041
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T22:44:09+00:00 2026-05-11T22:44:09+00:00

I am creating a pretty standard business application in WPF. I need to use

  • 0

I am creating a pretty standard business application in WPF. I need to use icons for the toolbars and menu items, and in a few other places. I’d like to know the answers to three (likely interrelated) things:

  • What format should I use for the images? ICO? PNG? JPG? GIF?
  • How do I store the images in my VS2008 project? As files on disk? In a RESX file? In a resource dictionary? (If in a resource dictionary, do they then also have to be on disk before the dictionary is “compiled”?)
  • Once the files are stored appropriately in my project, how best to reference them?

Thanks!

Update:

I accepted Chris Nicol’s answer, but I want to clarify what I did for the record.

  1. I created a folder in my project called Images.
  2. I put my images into this folder, and made sure that their build action was “Resource”.
  3. I created a ResourceDictionary XAML file called Images.xaml. Inside of this, I created an entry for each file, in the following format: BitmapImage x:Key="FooIcon" Source="Images\foo.png".
  4. I then referenced this ResourceDictionary in the usual way as needed.

My primary concern was that the resulting images be added to the DLL as resources and that they be accessible through WPF’s Resource system.

  • 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-11T22:44:09+00:00Added an answer on May 11, 2026 at 10:44 pm
    1. Format – I would say .PNG from experience, though .ICO may suit your needs depending on the source and size of your original graphic.

    2. Storage – They would be resources in the project, most likely created under a folder structure. They can then be accessed through the XAML.

    3. Referencing – It depends on the architecture of your application. In the most basic solution you would have a style that would set the image source property of your toolbar (implementation depends on your control). Each toolbar would implement a style resource.

    Hope that helps!

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

Sidebar

Related Questions

Okay, so here's my problem: We use FOP for creating pretty report output. We
What are the standard options for creating install packages for your software application? I
I'm creating a product listing for an online store. It's pretty standard stuff, a
I've been creating this pretty large web application for sometime and have been updating
This seems pretty much as a standard use of a collection, but it doesnt
I have a standard CSS menu, made with UL and LI tags. I need
I'm creating a pretty simple HTTP service using OpenRasta. For HEAD requests, the HTTP
I have been asked to look into FileMaker for creating a pretty simple database
Seems I've outdone myself. All the while I was creating this pretty little 'latest
Pretty new to Dynamics CRM 2011. I'm creating a data integration with Dynamics CRM

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.