Using Visual Studio Image Library PNGs in a Windows Form app - winforms

My question is about the Visual Studio Image Library that comes with VS2008. In the _Common Elements\Annotations folder, there are PNGs with multiple sizes and I was wondering what the intended use of these is. Is there an standard way to implement these images, e.g. in a Windows Forms status bar?
Here are three of the PNGs as an example:

The suggested usage is to basically copy/paste the sized image you want into a new image file. Then simply use that as an icon or image in your controls as you see fit. All of the PNGs already have a transparent background, so it should be really easy to copy/paste.

Related

Where to get large images for Ribbon control

I am trying to build a Ribbon control in WPF. I've downloaded the Visual Studio 2013 Image Library. It's got a lot of images but all the standard ones like Cut, Copy and Paste are only in 16x16 format.
Large ribbon images need to be 32x32 (or even up to 64x64 depending on device resolution, according to Microsoft).
I've found several articles on building a Ribbon control and they all seem to use the same icons. Does anyone know where I can find these icons?
It appears that, while Visual Studio includes a library of toolbar images that make it easier to have your own applications have a similar look and feel, Microsoft did not include a very rich set of images in the correct size for the Ribbon control.
So I guess that answer is that you either 1) Create your own, 2) Scavenge the images off the web, or 3) purchase a ready-made library of images with the correct sizes.

Icons in WPF when to use image and when to use Xaml?

I am Working on a WPF based project where the design team have created the design in blend with some images like Edit, delete, checkbox etc. where i am prefring to use xaml insteed of images
Although i am sure that if the images are prety complex they should be used as images. but the simple im icon images can be used as xaml path designs. So i am looking for the recomandations. When to use Images in WPF design and When to use xaml for design.
If your application is going to be used in different screen resolutions then using Vector Graphics is recommended as they will scale nicely and all your images will look sharp regardless of the resolution of the screen. (There is a downside as well because your application needs to do the extra rendering of the xaml images to display them)
If you are using the images just to display the toolbar images (which are pretty much small and fixed size then you can get away by using png files as they will take less resources and easy to manage)

Making icon for a Windows Form: How to make it show up correctly?

OK, so I have built a Windows Form application. I now want an icon for it. So I use the Icon Editor built into Visual Studio 2012. Draw it all out to look nice and purdy. Once I am done, I have a .ico file and I make it the default icon for the project, and also the icon for the one WinForm in the application.
Unfortunately, it does not show up as I have created it! It is displayed as the default icon file as it existed before I modified it in the icon editor. It's a 32x32 4 bit icon. If I change the extension to .bmp it shows up as the default.
It looks like the VS icon editor is editing something else, not the appearance of the icon. Can someone tell me what I am doing wrong?
I used to have a progam called IconArt that would create icons that looked like icons when I used them in VS. IconArt is now abandonware and won't run on my 64bit Windows workstation.
Since I didn't get any answers within the time I was hoping, I posted this question also in the MSDN Visual Studio forum, and got a good answer that I thought I should post here. Credit to Reed Copsey, Jr, for the answer!
This is it:
You'll need to put your design in all of the different versions. ICO
files contain multiple versions of the same image, for different
screen resolutions.
My personal preference is to not use VS - there's an ICO plugin for
Paint.Net (all free) which allows you to make a single image
(typically 256x256), and save multiple versions within an ICO file in
one shot. It's very useful for building icons.
See
http://forums.getpaint.net/index.php?/topic/927-icon-cursor-and-animated-cursor-format-v37-may-2010/
for the plugin.
Since I am a Paint.Net user, the plugin sounded like a great idea, and I tried it. Bingo! This works very nicely.

Way to use WPF Image without attaching image at runtime

I know how to attach an image to a XAML <Image> via VB.net runtime code. How would I do this the normal old way. (Attach the image within the IDE without using any code)
Before WPF one would browse for the image (in the Visual Studio IDE) it would somehow place it in the project and it would work.
Now I do this same thing, I can see the image in my Visual Studio IDE but during runtime the image appears blank.
How would I use the VS IDE to correctly browse for the image so it will display at runtime? Perhaps im doing something wrong a bit of help or any guidance would be awesome
I suppose you have a folder in your project which contains your image files, in that case something similar to <Image Source="/WpfApplication1/component;ImagesFolder/ImageName.png" /> would do the trick.
If you're looking for a non-code way, when you click on tag, you can browse for imported files from Source Property from Properties panel

Windows save, open... icons as vector graphics?

For my application (WPF) I'd like to use the standard icons for save, open... However, I'm not aware of them being available as vector graphics? So, where can one get them, is it maybe possible to extract them from some DLL files or whatever? Thank you very much!
The icons that are included with Visual Studio 2008 are bitmap only, I haven't installed Visual Studio 2010 yet.
There's a package of nice free common toolbar icons in XAML format at: http://www.grafile.com/presentation/Vista_Toolbar_library.html (haven't used them myself yet).
You can find a lot of (usually not free) icons sets by googling "xaml icons", you can find even more if you google "vector icons" but those will usually won't be XAML
Consider using big size icons (eg. 256x256 or 128x128 pix) and wpf would scale them down nicely. Probably you wouldn't make your icons bigger than 128x128 px anyway.
Icons you can use:
Crystal Project

Resources