Solved

Questions about a WPF program's architecture

Posted on 2011-02-11
3
400 Views
Last Modified: 2012-05-11
I am considering writing a Windows program that will be a learning tool for me for WPF.

I am a WinForms developer with years of experience with C#, OOP, OLE Database work, GUI design. Recently I have gone web with MVC2/MVC3, Razor, LINQ and Entity Framework 4.0. So I am staying current at work, except have not touched XAML.

I want to start a side home project making a Windows program that would use WPF and force me to learn XAML. I might even sell a copy or two, but that's not important to me. I want to use MS Access as the database since I would never want to support SQL Express installation.

I love Entity Framework 4.0 and LINQ, so that would be a requiremwent of my architecture.

What am I missing?  Where do I start?

I suppose I need to find a sample WPF progrtam that looks pretty good and make that my starting point.

Any advice?

newbieweb
0
Comment
Question by:newbieweb
  • 2
3 Comments
 
LVL 96

Accepted Solution

by:
Bob Learned earned 500 total points
Comment Utility
For me, the choice of a practical application for what ever you are trying to learn is a great first step.  I learn better by doing, than by reading.  If you are more familiar with ASP.NET or WinForms, then you are going to have fun getting your head around the world of WPF, since it is a huge paradigm shift from those technologies.

Food for thought:

1) Learn how the events are handled (routed events)

Events WPF
http://msdn.microsoft.com/en-us/library/ms753115.aspx

2) Learn about resources, since they provided a consolidated place for reusable elements

Resources Overview
http://msdn.microsoft.com/en-us/library/ms750613.aspx

3) Since you have experience with ASP.NET MVC, the MVVM (Model-View-ViewModel) pattern shouldn't be that much of a leap of faith.

WPF Apps With The Model-View-ViewModel Design Pattern
http://msdn.microsoft.com/en-us/magazine/dd419663.aspx

4) Look at the layout system, and understand the controls that are available (Canvas, StackPanel, Grid, DockPanel, etc).

Layout System
http://msdn.microsoft.com/en-us/library/ms745058.aspx
0
 

Author Closing Comment

by:newbieweb
Comment Utility
Once again, thanks for the great help!
0
 
LVL 96

Expert Comment

by:Bob Learned
Comment Utility
Good luck, grasshopper, and my guess is that I will seeing more WPF questions coming down the pike!!
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

728 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

11 Experts available now in Live!

Get 1:1 Help Now