Our team is experienced working on Winforms and ASP.net projects.
As what other programmers in programmers stack exchange recommend me to jump to WPF for our team next projects instead of using WinForms for our Client based business Applications.
Now i am starting to Develop my first project using WPF, its a little bit tricky for me as its my first attempt to use this.
Can you gave much deeper information why we need to jump to WPF instead of using winforms?
I need to convinced our manager that we can dig on WPF for our client based projects.
We are using VS 2008.
Routed Events are for the view only. For example, if you want to scroll to the end of a multiline textbox when the text changes.
Commands are used to bind events in which the logic resides on the view-model (business logic)... For example, a submit button.
If you have designers on your team, get them to start playing around with Expression Blend and understanding styles/layout. Expression Blend allows you to use sample data to see your applications layout without having to run it all the time.
ItemsControls work. There is a difference between
If you plan to take advantage of Code UI Testing (to test the actual User Interface), then make sure to name controls that matter (most MVVM tutorials tell you that you shouldn't have to name any controls). If you don't plan on doing Coded UI Testing, then don't name your controls unless you need to reference them from the view itself.
IMultiValueConvertershould only be used to convert properties to view-related items. The most commonly used converter is the
StringFormatare important when using binding. Don't make assumptions that the data being bound will always be available and correct.
You will almost always expose
ReadOnlyObservableCollection<T>from your view-models. Very rarely will you ever return any other type of collection, including an
Be careful in choosing your
OneWayToSource(WARNING: OneWayToSource is tricky... it still requires a getter because it is not a write-only binding).
That's all I can think of for now... Oh, and if you run into road blocks, StackOverflow is your friend :)