Click here to Skip to main content
15,076,130 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hello!

First of all sorry for my bad english. I am writting a simple application to image proccessing. I would like to open more then one images in window (similary to web browser). I have read sth about it but I only found an option where I can put images like icons into the switching tab area. Please give me a tip how to resolve it. I suppose I need to operate on openfiledialog, maybe dynamically creating a picture box in some loops. Please help.
Posted

1 solution

I finally see that PictureBox is evil. It's harmless, trivial and very rarely useful, but it has a magic effect on the beginners, tho try to use it where it makes no sense at all. I though WPF users will forget it.

OK, there is not PictureBox in WPF; and it is not really needed even in Forms. Just forget it. You have everything to work with images.

Everything is derived from here:
http://msdn.microsoft.com/en-us/library/system.windows.media.imagesource.aspx[^].

More specifically, everything related to bitmaps — from here:
http://msdn.microsoft.com/en-us/library/system.windows.media.imaging.bitmapsource.aspx[^],
http://msdn.microsoft.com/en-us/library/system.windows.media.imaging.bitmapsource.aspx#inheritanceContinued[^].

That's all you need.

—SA
   
Comments
bulibrb 14-Jan-13 12:17pm
   
Thx for the reply, but the point of my problem is how to implement a function which should open different pictures in different tabs from "tabcontrol".
Sergey Alexandrovich Kryukov 14-Jan-13 13:52pm
   
There is no such concept as "open a picture". If you want to draw a picture, just draw it in different Items of TabControl.Items. They are not exactly tabs, they represent the "tab pages" under each tab. Or, do you need to draw an image on the tab (top area of the control, not the main area)?
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900