Click here to Skip to main content
13,139,496 members (61,373 online)
Rate this:
Please Sign up or sign in to vote.
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 14-Nov-11 19:01pm
SAKryukov 15-Nov-11 1:22am
What kind of project do you want to "change"?
mohanrajkiller 15-Nov-11 2:39am
A windows form project
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

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.

RaisKazi 15-Nov-11 2:38am
Agree 5ed.
SAKryukov 15-Nov-11 2:53am
Thank you, Rais.
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
SAKryukov 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.
SAKryukov 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.
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

WinForms and WPF interop well. do an upgrade where new modules are in WPF and replace old modules with WPF.
Rate this: bad
Please Sign up or sign in to vote.

Solution 3

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.

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

Advertise | Privacy |
Web03 | 2.8.170915.1 | Last Updated 15 Nov 2011
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100