Click here to Skip to main content
15,886,067 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i doing a project where i wasnt able to implement one module but they have already implemented as a windows project is that possible to change (not converting) to wpf .
Do the properties of windows object like label text picturebox in windows will be available in wpf along with its attributes .

thank you ..
Posted
Comments
Sergey Alexandrovich Kryukov 15-Nov-11 1:22am    
What kind of project do you want to "change"?
--SA
mohanrajkiller 15-Nov-11 2:39am    
A windows form project

First, WPF is also a "Windows project", so what do you want to "convert" or "change" to WPF?

Assuming this is a Forms project: you can possibly do it manually, as there is no one-to-one correspondence between them, and the controls are used is different way even though there are many similarities. Of course you have Label, TextBox and a lot more with nearly the same of slightly different properties; there is no PictureBox, but this is a pretty silly control which cause a lot of confusion in CodeProject inquirers already and in many cases when it is not actually needed. All the graphics it totally different, there is no anything like GDI, but WPF graphics is easier to use. Layout is totally different, but some ideas are common.

—SA
 
Share this answer
 
Comments
RaisKazi 15-Nov-11 2:38am    
Agree 5ed.
Sergey Alexandrovich Kryukov 15-Nov-11 2:53am    
Thank you, Rais.
--SA
mohanrajkiller 15-Nov-11 2:40am    
ok i got it but i need picturebox soo badly i think :( because i am capturing the screen remotly and displaying in server in a picturebox :( help me
Sergey Alexandrovich Kryukov 15-Nov-11 2:47am    
No, you don't, even for the purpose you describe. This is nearly useless thing. Your use of it was just a mistake, most likely; you could have used custom control. In WPF you need System.Windows.Media.Imaging.BitmapSource or one of derived classes, please see.
--SA
Sergey Alexandrovich Kryukov 15-Nov-11 2:48am    
Actually, you can ask it as a separate question; give some more detail and post it.
As to this answer, I suggest you consider accepting it formally (green button) -- thanks.
--SA
WinForms and WPF interop well. do an upgrade where new modules are in WPF and replace old modules with WPF.
 
Share this answer
 
SA's Answer should clear all your doubts about Win-Forms and WPF.

Have a look at below links.

Introduction to WPF

XAML Overview (WPF)

Plenty of Articles about WPF on CodeProject.

http://www.codeproject.com/KB/WPF/
 
Share this answer
 

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



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