Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#2.0 C#3.0 C# C#4.0
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 20:01pm
Comments
SAKryukov at 15-Nov-11 1:22am
   
What kind of project do you want to "change"?
--SA
mohanrajkiller at 15-Nov-11 2:39am
   
A windows form project
Rate this: bad
good
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.
 
—SA
  Permalink  
Comments
RaisKazi at 15-Nov-11 2:38am
   
Agree 5ed.
SAKryukov at 15-Nov-11 2:53am
   
Thank you, Rais.
--SA
mohanrajkiller at 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 at 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
SAKryukov at 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
Rate this: bad
good
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.
  Permalink  
Rate this: bad
good
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.
 
http://www.codeproject.com/KB/WPF/
  Permalink  

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



Advertise | Privacy | Mobile
Web04 | 2.8.1411022.1 | Last Updated 15 Nov 2011
Copyright © CodeProject, 1999-2014
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