Click here to Skip to main content
15,893,161 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: Starter MVVM Framework Recommendation Pin
cjb11018-Jun-14 3:48
cjb11018-Jun-14 3:48 
GeneralRe: Starter MVVM Framework Recommendation Pin
Pete O'Hanlon18-Jun-14 4:09
mvePete O'Hanlon18-Jun-14 4:09 
AnswerRe: Starter MVVM Framework Recommendation Pin
Vincent Beek18-Jun-14 3:30
Vincent Beek18-Jun-14 3:30 
GeneralRe: Starter MVVM Framework Recommendation Pin
cjb11018-Jun-14 3:50
cjb11018-Jun-14 3:50 
AnswerRe: Starter MVVM Framework Recommendation Pin
Mycroft Holmes18-Jun-14 12:53
professionalMycroft Holmes18-Jun-14 12:53 
GeneralRe: Starter MVVM Framework Recommendation Pin
cjb11018-Jun-14 20:40
cjb11018-Jun-14 20:40 
GeneralRe: Starter MVVM Framework Recommendation Pin
Mycroft Holmes18-Jun-14 22:11
professionalMycroft Holmes18-Jun-14 22:11 
AnswerRe: Starter MVVM Framework Recommendation Pin
Stein Borge18-Jun-14 18:23
Stein Borge18-Jun-14 18:23 
First of all, what type of application are you creating?
Do you know why you are doing MVVM? A lot of people throw around 'it's great/separation of concerns etc.' without properly taking advantage of underlying strengths of the pattern.

Unless you are creating massive applications with big managed teams, skip Prism. I'd go with Caliburn Micro or MVVMLight..

Before making a decision you should create a basic application with a couple of forms, one with one to many/parent child data, a lot of buttons/menus and throw in some mouse/drag click events. This may sound trivial from a traditional Access/VB6 form perspective but can take a lot of work to function successfully in MVVM.

You might want to look at this library I did to take out a lot of the pain associated with MVVM https://github.com/steinborge/ProxyTypeHelper
While not strictly a framework it greatly simplify view model creation. It works with PRISM and should work with other frameworks. It still maintains full MVVM i.e. no strong couple of view or view model.
The following code demonstrates a viewmodel using the library, using the traditional method would be a lot more code.

C#
 public string FirstName {get;set;}
 public string LastName {get;set;}

//FullName property changed event fires if FirstName or LastName
[LinkToProperty("FirstName")] [LinkToProperty("LastName")]
public string FullName
{
  get
  {
   return String.Format("{0} {1}", FirstName, LastName);
  }
}

[PropertyChangedEvent]
void person_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
{
   //do something
}

//call this method if RollBackChangesCommand command fires in view
[LinkToCommand("RollBackChangesCommand")]
private void btnRollBackChanges()
{
}

//link to view's data grid AddingNewItem event
[LinkToEvent("AddingNewItemEvent")]
private void DataGrid_AddingNewItem(AddingNewItemEventArgs e)
{
}


modified 19-Jun-14 0:35am.

GeneralRe: Starter MVVM Framework Recommendation Pin
cjb11018-Jun-14 21:59
cjb11018-Jun-14 21:59 
GeneralRe: Starter MVVM Framework Recommendation Pin
Stein Borge19-Jun-14 1:58
Stein Borge19-Jun-14 1:58 
GeneralRe: Starter MVVM Framework Recommendation Pin
Geert van Horrik20-Jun-14 8:40
Geert van Horrik20-Jun-14 8:40 
GeneralRe: Starter MVVM Framework Recommendation Pin
_Maxxx_6-Jul-14 19:16
professional_Maxxx_6-Jul-14 19:16 
QuestionBind to static property which change in runtime Pin
Mc_Topaz16-Jun-14 23:23
Mc_Topaz16-Jun-14 23:23 
AnswerRe: Bind to static property which change in runtime Pin
Pete O'Hanlon16-Jun-14 23:55
mvePete O'Hanlon16-Jun-14 23:55 
SuggestionRe: Bind to static property which change in runtime Pin
Richard Deeming17-Jun-14 1:43
mveRichard Deeming17-Jun-14 1:43 
GeneralRe: Bind to static property which change in runtime Pin
Pete O'Hanlon17-Jun-14 1:53
mvePete O'Hanlon17-Jun-14 1:53 
AnswerRe: Bind to static property which change in runtime Pin
Richard Deeming17-Jun-14 1:50
mveRichard Deeming17-Jun-14 1:50 
QuestionRichTextBox in WPF really slow... Why? Pin
LLLLGGGG13-Jun-14 9:09
LLLLGGGG13-Jun-14 9:09 
AnswerRe: RichTextBox in WPF really slow... Why? Pin
Pete O'Hanlon15-Jun-14 20:09
mvePete O'Hanlon15-Jun-14 20:09 
GeneralRe: RichTextBox in WPF really slow... Why? Pin
LLLLGGGG15-Jun-14 23:18
LLLLGGGG15-Jun-14 23:18 
GeneralRe: RichTextBox in WPF really slow... Why? Pin
Pete O'Hanlon16-Jun-14 0:18
mvePete O'Hanlon16-Jun-14 0:18 
QuestionWPF ListBox Data Template Problem Pin
Kevin Marois11-Jun-14 9:08
professionalKevin Marois11-Jun-14 9:08 
AnswerRe: WPF ListBox Data Template Problem Pin
simbos11-Jun-14 10:17
simbos11-Jun-14 10:17 
QuestionWPF ListBox Losing Focus Pin
Kevin Marois9-Jun-14 13:44
professionalKevin Marois9-Jun-14 13:44 
QuestionWPF ListBox in DataTemplate ListBox - Binding Question Pin
Kevin Marois9-Jun-14 9:44
professionalKevin Marois9-Jun-14 9:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.