viewmodel
Sending Values from View To ViewModel
I have a senario here... (Extremely sorry writing such a long post) I have are TreeView(Bound to the observable collection of Phones(Different types)) i have a contentCOntrol whose COntent Binding is[详细]
2023-04-12 23:49 分类:问答Simple MVVM Toolkit - loosing ViewModel when switching them
I\'m using MVVM Toolkit. In my ViewModels I\'m keeping data which I\'d like to save when switching ViewModel to another.[详细]
2023-04-11 15:37 分类:问答What do you do when you have Rich Models?
I\'m working with existing code in a project which has rich models all over the place (instead of POCOs). Basically, is there any good way to mix rich models and ViewModels without repeating code?[详细]
2023-04-10 23:15 分类:问答Is having an instance of serviceclient at every viewmodel a good idea?
I have to refactor an application which has at almost every model and codebehind file an instance of serviceclient, and some of them use a serviceclient property from App.xaml.cs (Silverlight 4)[详细]
2023-04-10 20:09 分类:问答Can I use most of my code in an ASP.NET MVC3 app?
I wrote a simple WPF Application as an example: Model: public class User { public String FirstName { get; set; }[详细]
2023-04-09 05:28 分类:问答AutoMapper with complex types
I\'m having a problem trying to use complex types with AutoMapper. I have two objects, a domain and a ViewModel that utlize in my View;[详细]
2023-04-09 05:11 分类:问答How to use ViewModel
Ok, after some research I was unable to understand the \"viewmodel thing\". I didn\'t find any article that explains me what are the steps to work with ViewModels compared to simply passing the Entit[详细]
2023-04-08 18:14 分类:问答How to add custom validate method for viewmodel
I tried to add custom validator for ViewModel class: [Serializable] public class UserViewModel : IValidatableObject[详细]
2023-04-07 04:39 分类:问答How do I view the parent view model MVC3 C#?
I want to use two models in one view and have looked at parent view model. I have two models: public class Blogg[详细]
2023-04-06 23:55 分类:问答MVC3 Pass viewmodel object with Iqueryable back to Controller
I have a view that I pass a viewmodel object to that contains an IQueryable<> object. This object is used to populate an mvccontrib grid.The view also contains other partial views that allow the u[详细]
2023-04-06 17:21 分类:问答