Solved

WPF or Standard Winform for Smart Client?

Posted on 2009-04-06
4
327 Views
Last Modified: 2013-11-12
I need to know the best way to approach building a smart client front-end.   Should I use WPF or standard windows forms?

I was messing around with WPF and you can't do as much with it, or maybe you can.. when comparing it to standard windows forms.  

What is the advantages of building WPF's front-ends compared to window forms?  

Any opinions would help me out.  Thanks..

0
Comment
Question by:StrongD1
  • 2
  • 2
4 Comments
 
LVL 69

Expert Comment

by:Éric Moreau
ID: 24079490
WPF can create richer forms but since the technology is quite new, not all components are available yet.

If I was starting a new project today, I would probably start it as a WPF application in which you can add regular Windows Forms as well a WPF Forms.

The next version of Visual Studio will enhance your experience.
0
 
LVL 1

Author Comment

by:StrongD1
ID: 24079713
So I can create the Windows forms for things that the WPF won't do and add the Win forms to my WPF project?  Is that what you are saying?  Maybe making a mixture of Win forms and WPF forms?

I noticed that the WPF controls are limited.  There isn't a SQL data adapter control...  Could I talk to a SQL Db's with just code?  

I am currently writing several web services so when the user is actually connected to the network, the client can call the web servces (If needed) and get data, query db, add records, delete records, etc.  When the user is disconnected, I will have a SQL Server Compact DB and the user can still do things as well as store data in the SQL Server Compact, when the user is connected again after being offline, the data from the SQL Server compact will sync with the SQL Server 2008 on the network.  

Does that sound like a good way to approach this?  I was going to approach this use web application, but that means, when offline I would have to have IIS running on the local machine.  It just seemed clunky...  Win forms is the best approach I think...

Let me know your opinion... thanks...
0
 
LVL 69

Accepted Solution

by:
Éric Moreau earned 500 total points
ID: 24079784
>>So I can create the Windows forms for things that the WPF won't do and add the Win forms to my WPF project?  Is that what you are saying?  Maybe making a mixture of Win forms and WPF forms?

Yes. But be sure to start your application as a WPF application. If you started a regular Windows Application, you will have to add regular winforms, add a ElementHost control to your form and then you will be able to host a WPF usercontrol into that host.

>>I noticed that the WPF controls are limited.  

it is a pretty new technology that will be greatlty enhanced in the next year.

>>Does that sound like a good way to approach this?  

WPF cannot run on Compact Framework. Windows/WPF applications seems a right choice for your scenario.
0
 
LVL 1

Author Closing Comment

by:StrongD1
ID: 31567076
Thanks emoreau!!!!

I appreciate your info and your opinions.  Thanks for this.  I am going to start building the client side today...  take a break from the web services for awhile.

0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Need to grow your business through quality cloud solutions? With everything required to build a cloud platform and solution, you may feel like the distance between you and the cloud is quite long. Help is here. Spend some time learning about the Con…

919 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now