DotNetShoutout - Stories tagged with ViewModel
2
Shouts

Viewmodel extractors in ASP.NET MVC

posted by http://jclaes.blogspot.com/http://jclaes.blogspot.com/ 579 days, 9 hours, 11 minutes ago
Monday, October 17, 2011 6:27:05 PM GMT
Last week, I wrote something on assembling viewmodels in ASP.NET MVC. In that post, I said it would be nice to have a layer between my controller and my domain services that would assemble viewmodels for me. This would work one-way. In the other direction - from controller to domain services - I would just take a piece of my composite viewmodel and pass that directly to my domain services. Well, that last part didn't really work out eventually. I found it hard to find real-world scenarios where I cou... (more)
category: Web Dev | clicked: 15 | comment | | source: jclaes.blogspot.com
tags: ASP.NET MVC, ViewModel, Architecture
2
Shouts

Viewmodel assemblers in ASP.NET MVC

posted by http://jclaes.blogspot.com/http://jclaes.blogspot.com/ 584 days, 9 hours, 18 minutes ago
Wednesday, October 12, 2011 6:19:41 PM GMT
Working on a new ASP.NET MVC side-project, I have the luxury to experiment with new technologies, but also with different patterns and naming conventions. Something which bugged me in a previous project was that we made our service layer return viewmodels. It worked rather well because the service layer in our MVC project was just another layer between the real domain services - where most of its work was creating viewmodels from domain objects or translating viewmodels into domain objects, so they c... (more)
category: Web Dev | clicked: 12 | comment | | source: jclaes.blogspot.com
tags: ASP.NET MVC, ViewModel, domain services, MVC
6
Shouts

Suggestions to improve your WPF ViewModels

published 831 days, 9 hours, 27 minutes ago posted by http://fquednau.pip.verisignlabs.com/http://fquednau.pip.verisignlabs.com/ 834 days, 10 hours, 14 minutes ago
Monday, February 07, 2011 6:10:41 PM GMT Friday, February 04, 2011 5:24:01 PM GMT
Throughout the years where I have been working on WPF projects, I have seen a fair share of classes used as ViewModels (VM) that have been lacking in revealing their intended and proper usage, such that their resistance to maintenance is increased. I think that the following suggestions help to make ViewModels that still work well and are more explicit about their function... (more)
category: Architecture | clicked: 13 | comment | | source: realfiction.net
tags: WPF, VM, ViewModel, MVVM
4
Shouts

Richard Dingwall » The Fat ViewModel

published 887 days, 1 hour, 39 minutes ago posted by https://www.google.com/accounts/o8/id?id=AItOawlaVlLBbncfI-kMRw49gppHW031v5SQL4Yhttps://www.google.com/accounts/o8/id?id=AItOawlaVlLBbncfI-kMRw49gppHW031v5SQL4Y 892 days, 3 hours, 50 minutes ago
Tuesday, December 14, 2010 1:58:42 AM GMT Wednesday, December 08, 2010 11:48:14 PM GMT
Description of a common problem in WPF, and why DelegateCommands are evil. (more)
category: Architecture | clicked: 39 | comment | | source: richarddingwall.name
tags: ViewModel, MVVM, Prism, Anti-Patterns
9
Shouts

ASP.NET MVC View Model object using C# 4 dynamic and ExpandoObject - Shiju Varghese's Blog

published 1199 days, 16 hours, 17 minutes ago posted by ali62bali62b 1200 days, 20 hours, 40 minutes ago
Thursday, February 04, 2010 11:21:05 AM GMT Wednesday, February 03, 2010 6:57:21 AM GMT
In my last post, I have explained the use of View Model objects in ASP.NET MVC applications. In this post, let me discuss on view model objects by using the C# 4 dynamic and ExpandoObject. I do not recommending to use dynamic keyword for creating View Model objects that will loss the intellisense feature of Visual Studio.    publicActionResultList() {     dynamicviewModel = newExpandoObject();     viewModel.ContactGroup = contactRepository.ListGroups().ToSelectListItems(-1);     returnView(viewMode... (more)
category: Web Dev | clicked: 3 | comment | | source: weblogs.asp.net
tags: ASP.NET MVC, dynamic, C# 4.0, ViewModel
9
Shouts

View Model pattern and AutoMapper in ASP.NET MVC Applications - Shiju Varghese's Blog

published 1201 days, 15 hours, 37 minutes ago posted by ali62bali62b 1201 days, 20 hours, 50 minutes ago
Tuesday, February 02, 2010 12:00:23 PM GMT Tuesday, February 02, 2010 6:48:04 AM GMT
In real world ASP.NET MVC applications, we have to use model objects specially designed for our ASP.NET MVC views. Domain objects are designed for the needs for domain model and it is representing the domain of our applications. On the other hand, View Model objects designed for our needs for views. The below is the domain model of our demo We have a Contact domain entity that has a association with Contact Group. While we creating a new Contact, we have to specify that in which contact... (more)
category: Web Dev | clicked: 14 | comment | | source: weblogs.asp.net
tags: ASP.NET MVC, ViewModel, AutoMapper
12
Shouts

Binding UI Events from View to commands in ViewModel in Silverlight 4

published 1205 days, 17 hours, 2 minutes ago posted by http://roboblob.myopenid.com/http://roboblob.myopenid.com/ 1207 days, 18 hours, 44 minutes ago
Friday, January 29, 2010 10:35:37 AM GMT Wednesday, January 27, 2010 8:53:31 AM GMT
Binding UI Events from View to commands in ViewModel in Silverlight 4 In previous two posts we covered wiring up the Views and ViewModels and Blendability and showing ModalDialogs in MVVM way. Today we will touch another problem that people starting with MVVM very often fail to address properly: Handling the UI Events of the View in the ViewModel while avoiding placing any logic in code behind of the View. So our design goals for this post... (more)
category: Metro | clicked: 1 | comment | | source: blog.roboblob.com
tags: .NET, Silverlight, C#, ViewModel, UI, Silverlight 4, Blend, MVVM, View
12
Shouts

Try-Catch-FAIL - Exposing the View Model to JavaScript in ASP.NET MVC

published 1241 days, 7 hours, 49 minutes ago posted by Matt_TCFMatt_TCF 1242 days, 21 hours, 7 minutes ago
Thursday, December 24, 2009 7:48:36 PM GMT Wednesday, December 23, 2009 6:30:19 AM GMT
View models make it easy to move data between your views and controllers in a strongly-typed manner, but what's the best way to leverage the view model from JavaScript? This post looks at some of the alternatives and presents a clean, simple way to convert the view model to an equivalent JavaScript object by using JSON on the master page. (more)
category: Web Dev | clicked: 2 | comment | | source: trycatchfail.com
tags: ASP.NET MVC, JSON, ViewModel, JavaScript
8
Shouts

A Generic Dialog ViewModel

published 1260 days, 12 hours, 23 minutes ago posted by http://reyntjes.blogspot.com/http://reyntjes.blogspot.com/ 1261 days, 17 hours, 7 minutes ago
Saturday, December 05, 2009 3:14:36 PM GMT Friday, December 04, 2009 10:30:49 AM GMT
I have created a wpf viewmodel for dialogs. I always found it strange that you needed for instance windows forms dialogs to open or save files in wpf. With this viewmodel it becomes easy to create flexible wpf dialogs. (more)
category: How To | clicked: 0 | 1 comment | | source: reyntjes.blogspot.com
tags: C#, WPF, ViewModel