viewmodel
WPF Combobox not updating ViewModel
I have a really weird issue with Combobox in WPF.I have used it before in a simpler implementation and thought I knew how it works, but apparently not.The scenario is as follows... I have three classe[详细]
2023-04-01 13:15 分类:问答POST of ViewModel and Validation on DomainModel
I\'ve been developing a web app using asp.net mvc and nhibernate. I\'m trying to follow some principles of DDD and best pratices of Asp.Net MVC. My question is about Clean up POST with VIewModels. To[详细]
2023-04-01 01:40 分类:问答Passing displayed ViewModel data along with textbox data to Controller asp.net mvc 3
ViewModel class public class CreateMRViewModel { public Decimal? Freight { get; set; } public IList<OrderLine> OrderLines { get; set; }[详细]
2023-03-31 17:50 分类:问答Backgroundworker - Data Binding - View Update
I have a requirement to select bulk data (million rows) and then update the DB Table. Now, I am reading the data chunk by chunk in a BackgroundWorker (as the usage being specified in MSDN)[详细]
2023-03-31 16:41 分类:问答knockout: accessing the View Model through an iframe?
The app I\'m building requires the use of iframes for wysiwyg text editing, and these iframes need to be wired up to the viewModel, but I\'m finding that this clashes with knockout... or at least knoc[详细]
2023-03-31 12:29 分类:问答Best Place To Populate ViewModels For Partials?
Currently I am using a ViewModelFactory hanging off HtmlHelper in an extension method: public static IViewModelFactory ViewModels(this HtmlHelper helper)[详细]
2023-03-31 07:15 分类:问答What to do with a parent-view command that manipulates a child view, and view modeling would be tedious or not required?
I know binding a view model to a view is ok, view models containing view models is ok, and views containing views is ok. I have a situation where it seems a sub-view needs to be bound to a view.[详细]
2023-03-30 21:06 分类:问答What is a good pattern for updating a viewmodel, both from user interaction and service events?
Consider these two scenarios: a user presses a button in a view (e.g. Fulfill Order) and we want the view to update immediately (disable the button, add a progress bar, etc.)[详细]
2023-03-30 19:23 分类:问答How do I bind a Ribbon control to my ViewModel?
I\'ve been struggling since yesterday to build a (what I thought) simple Ribbon on WPF, using MVVM. I found quite a few links on the internet (and on Stack Overflow), but none could really solve my pr[详细]
2023-03-30 09:19 分类:问答Are current MVVM view model practices a violation of the Single Responsibility Principle?
With current practices (at least with WPF and Silverlight) we see views bound via command bindings in the view model or we at least see view events handled in view models. This appears to be a violati[详细]
2023-03-30 07:47 分类:问答