relaycommand
Command not working for menu item
I need help to figure out why my command doesn\'t work on menu item. I\'ve been googling the solutions for this, and found few too in here. But probably because of my knowledge (beginner WPF), I still[详细]
2023-03-14 16:05 分类:问答Why does RelayCommand<T>.Execute take an object instead of a T?
This hasn\'t done anything but cause the need for what would otherwise be unnecessary casting (or rather, caused me to pull down the codebase and make the change myself). Is there a reason for doing t[详细]
2023-03-12 06:42 分类:问答How to bind application commands to view model(WPF)?
I have already read Josh Smiths article about binding commands to view model using 开发者_运维知识库RelayCommand. However I need to bind ApplicationCommands.Save to a view model so that when a user cl[详细]
2023-03-06 16:11 分类:问答CanExecute and CanExecuteChanged, I must implement these with a RelayCommand?
I am using MVVM-Light and i have my relay command working perfectly, I have just read that i should be implementing CanExecuteChanged and CanExecute. Although i am unable to find a good example.[详细]
2023-03-03 01:34 分类:问答Showing another View from my current Viewmodel and closing a view from my viewmodel?
I have another view setup and ready and waiting with its viewmodel. My RelayCommand arrives in my \"Current\" viewmodel. What is the best way to show the new view from my current viewmodel?[详细]
2023-03-02 04:33 分类:问答What is the best way to handel click-events in MVVM?
What is the best way to handel click-events in MVVM? Are there a best way? I have found two solutions:[详细]
2023-02-25 12:53 分类:问答Command binding in multiwindow WPF app
My application can have multiple designer windows. Each window constitutes of several user controls which communicates dynamically with the help of RelayCommands. I created the following class as the[详细]
2023-02-19 15:40 分类:问答MVVM Light RelayCommand Parameters
I\'m having an issue with passing a parameter to a relaycommand using the GalaSoft MVVM Light framework.I know that mvvm light\'s implementation of relaycommand doesn\'t use lambda parameters, so I di[详细]
2023-02-16 13:23 分类:问答How do I test Relaycommand?
I\'m reading this MSDN Article about MVVM. I\'m currently looking at the RelayCommand in figure #15. Pretend I wanted to test this SaveCommand. How开发者_运维技巧 would I do that? I\'m using NUnit and[详细]
2023-02-12 19:30 分类:问答UI Validation before executing RelayCommand WPF
I\'m new to WPF and I tried to implement a demo application with RelayCommand. My question is this: If i want 开发者_开发百科to execute a command which has to ask the user if he\'s sure he wants to[详细]
2023-02-11 11:38 分类:问答