MVVM - RaisePropertyChanged turning code into a mess

Posted by vidalsasoon on Stack Overflow See other posts from Stack Overflow or by vidalsasoon
Published on 2010-03-31T12:46:23Z Indexed on 2010/03/31 13:03 UTC
Read the original article Hit count: 443

Filed under:
|
|

New to MVVM so please excuse my ignorance.

I THINK i'm using it right but I find my ViewModel has too many of these:

RaisePropertyChanged("SomeProperty")

Every time I set a property I have to raise that damned property changed.

I miss the days where I could just go:

public int SomeInteger { get; private set;}

These days I have to stick the "RaisePropertyChanged" in everywhere or my UI does not reflect the changes :(

Am I doing it wrong or are other people getting annoyed with the excessive number of magic strings and old school property setters?

Should I be using dependency properties instead? (I doubt that would help the code bloat anyway)

Despite these problems I still think MVVM is the way to go so I guess that's something.

© Stack Overflow or respective owner

Related posts about mvvm

Related posts about Silverlight