Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Which version do I have?
Message
De
20/10/2011 09:08:42
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
 
 
À
20/10/2011 03:34:13
Information générale
Forum:
ASP.NET
Catégorie:
Visual Studio
Versions des environnements
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01526788
Message ID:
01526963
Vues:
47
>>
>>I think that certain patterns fit certain technologies better. For example, MVVM makes data binding a breeze and helps with the intricacies of Silverlight.
>
>I'd argue that it is the other way around. It's the in-built databinding capabilities of WPF/Silverlight that make MVVM work.
>
> MVC makes client-side technologies very easy to use - no so much the architecture itself but the available functionality out of the box.
>>
>>Is it really realistic to expect to only use one pattern?
>
>It would be a good goal to aim towards.
>In general terms it obviously make more sense to retain as many layers as possible for all front ends. For example, if I was asked to create a Winforms version of a current WPF app I'd rather spend time making the Winforms UI work with the VM (maybe a generic shim) than writing a whole new tier to link WinForms to the model. And I certainly wouldn't expect to mess with the model :-{

I haven't given this a bunch of thought since Winforms is out of scope, however I would think the only adjustment in the VM would be add some event to the existing OnPropertyChanged event for INotifyPropertyChanged. Winforms won't bind directly to the properties in the VM and an event raised that winforms could respond to update VM properties seems to be needed.

Might be fun to do some play work with this idea, but again with Winforms out of scope for new projects, why.
Timothy
Timothy Bryan
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform