mvvm
Registering for messages outside of a ViewModel in MVVM Light?
I was trying to register for a message outside of a ViewModel in a static constructor but apparently that registration didn\'t take: the registered action never ran when messages were sent. I tried pa[详细]
2023-04-11 19:49 分类:问答How can I Import my ViewModels without breaking MVVM?
[Export] public sealed class MainViewModel : NotificationObj开发者_高级运维ect { [Import] public ISomeService MyService { get; private set; }[详细]
2023-04-11 19:00 分类:问答How do I make a ControlTemplate (for a checkbox) readonly in WPF/MVVM?
I\'ve got a WPF datagrid where I\'ve created a ControlTemplate for a checkbox to represent a bool? type.[详细]
2023-04-11 17:56 分类:问答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 分类:问答Is it okay to break LSP for the sake of binding?
Something tells me I might get lynched for asking this. And sorry for the long winded description in advance.[详细]
2023-04-11 15:37 分类:问答WPF Validation on submit using IDataErrorInfo
Is there a simple way to only show validation errors开发者_如何学JAVA when a form is being submitted in WPF?[详细]
2023-04-11 08:19 分类:问答How to implement single item DragDrop WPF Listview in MVVM way?
I have two listviews (and Gridview inside that) inmy WPF/MVVM application. How would I implement Drag/Drop for single item in this case?[详细]
2023-04-11 06:44 分类:问答How to show other window from viewmodel?
I have a simple sample thatmy sample has 2 window : 1-ProductlistView 2-ProductEditView (1-ProductlistViewModel 2-ProductEditViewModel)[详细]
2023-04-11 06:26 分类:问答WPF Datagrid - Set the mouse cursor after the completion of loading records
I have the following scenario: We\'re building a WPF MVVM application. Sending the command to load mylist. The DataSource is set to mygrid.ItemsSource = mylist. I need to set the mouse cursor to Curs[详细]
2023-04-11 04:21 分类:问答Implementing Progress bar using WPF with MVVM pattern (Using BackgroundWorker)
Note: This code works now. I have fixed some stupid mistake and I have a开发者_如何学编程lso revised code as Steve Greatrex pointed out.[详细]
2023-04-11 01:58 分类:问答