Questions tagged [eventtocommand]

61 questions
2
votes
1 answer

Pass a CommandParameter using MVVMLight EventToCommand and the Page Load event?

EventToCommand fails to pass Command Parameter on Load Event When attached to the Load event of the page or user control the EventToCommand successfully calls the handler in the ViewModel but does not pass the CommandParameter. However, the same…
2
votes
1 answer

Pass Data To ViewModel with EventToCommand, Devexpress

I am working with devexpress winform controls and At this moment I have defined the RowDoubleClick event in my view constructor as shown below: mvvmContext1.WithEvent(gridView1, "RowClick") …
user9035668
2
votes
1 answer

EventToCommand binding with parameters in portable view models

I am implementing a view model that is shared by applications on multiple platforms. I am using MvvmCross v3 that has its own MvxEventToCommand class, but I believe the challenge is the same for other frameworks like MVVM Light. As long as the event…
2
votes
2 answers

Using MVVM Light EventToCommand In DataTemplate

So I have a WPF UserControl:
Kyle Hale
  • 7,912
  • 1
  • 37
  • 58
2
votes
1 answer

How to use WPF DataGridRow events with Interaction.Triggers / MVVM EventToCommand

The MVVMLight EventToCommand can be used to fire an ICommand on your viewmodel quite easily.
Simon_Weaver
  • 140,023
  • 84
  • 646
  • 689
1
vote
0 answers

EventToCommand fails for the initial GotFocus event

I begin to apply the Mvvm design pattern in my current project and the framework I used is Mvvm Light toolkit. Now I encoutered a problem when using the EventToCommand to handle "GotFocus" event. The xaml file is something like:
user1012036
  • 163
  • 1
  • 9
1
vote
1 answer

MVVM light EventToCommand: get selected item

I have a treeview where I can click on items. I am using MVVM light toolkit and the EventToCommand and would like to know which item was chosen. How can I pass this to my viewmodel?
user973244
  • 11
  • 3
1
vote
1 answer

Maui event to command behavior how to get sender and args inside command?

Style code: