In my desktop-based WPF-application I want to implement a toolbar with key actions (add, update, delete etc.), something like you can see in any web-interface mail-service.
In order to make it I have a large PNG-image with all possible icons (regular, active, disabled, etc.)
So, my question is how to show not the whole image, but only an area. For example, from pixel 50 to pixel 100 in a case where my icon is square and has 50px side.
In other words, how would you suggest to implement in WPF selecting a subsection of an image to display in a toolbar button if all icons are placed to one big PNG-image?
Thanks.
P.S. I came from web-development and there it's regullar to use one big PNG-image with all icons and when you want to put a specific icon you have to define which area in imagу you want to show.