Questions tagged [eventtocommand]

61 questions
1
vote
1 answer

Issue with UserControl event not being intercepted with MVVM Light EventToCommand

I have a WPF project where I am using MVVM Light. On a page in the project, ConnectionPage, I have a UserControl (ctlSqlConnection) that can raise a Connected event. I am trying to use MVVM Light to intercept this event with EventToCommand and…
Cleve
  • 1,273
  • 1
  • 13
  • 26
1
vote
1 answer

Mvvm light EventToCommand - Setting the Handled property?

I have a tabbed GUI with each tab containing a Frame. I use the EventToCommand with the SelectionChangedEvent whenever a new TabItem is selected. I do this to update the state of the app. This all works fine - a little bit too fine, the event gets…
1
vote
0 answers

Can't use IsKeyboardFocusWithinChanged in EventTrigger

I'm wondering if any one can explain why I can't use IsKeyboardFocusWithinChanged with EventTrigger:
user1604008
  • 995
  • 9
  • 17
1
vote
1 answer

How to route GridViewColumnHeader.Click event with EventToCommand and MVVM Light

This bigger code example below works. Now what I really want to route is the GridViewColumnHeader.Click event within the EventTrigger. Replacing MouseMove with GridViewColumnHeader.Click doesn't work. Any ideas on that?
timmkrause
  • 3,367
  • 4
  • 32
  • 59
1
vote
2 answers

Validation.error event in event command

I have a text box:
Hodaya Shalom
  • 4,327
  • 12
  • 57
  • 111
1
vote
1 answer

MVVM Light - Event to Command & ListView - SelectedItem

I have looked all over for an answer to this with no luck. I'm using MVVM Light and I have a ListView in one of my views. I would like to find a way to fire a command when the selected item in my ListView is clicked using the 'Event to Command'…
Jason D
  • 2,634
  • 6
  • 33
  • 67
1
vote
1 answer

WPF How to add blend interaction trigger to style resource

I am using VS 2012, with WPF 4.5 I want to be able to add a blend interaction trigger to a style resource so that I can have that defined in one place (resource dictionary) and use in many places throughout my app. Specifically, I want to use the…
J King
  • 4,108
  • 10
  • 53
  • 103
1
vote
1 answer

Bind a grouped Collection in Xaml

I've searched a bit, but the info I've found isn't what I need. So I decided to ask you all - I'm sure it's a newbie question but i really don't get it. Let's start: I have a DataSource which is a grouped observable collection. At the moment I've 2…
Martin
  • 235
  • 1
  • 4
  • 12
1
vote
1 answer

MVVMLight: How to disconnect event handler

I use the MVVMLight EventToCommand to hook up a command to the MouseEnter event:
Number8
  • 12,322
  • 10
  • 44
  • 69
1
vote
1 answer

Binding WPF Image control events with MVVM Light EventToCommand

I want to wire command to Image's MouseDown event in WPF MVVMLight applcation. I have following code :
Jaded
  • 1,802
  • 6
  • 25
  • 38
0
votes
0 answers

EventToCommandBehavior for DataGridView

I need EventToCommandBehavior for DataGridView.
0
votes
0 answers

How to use a parameter with EventToCommand in mvvmlight on WPF

I have the following datagird in my WPF and I can open a new CustomerOperationView from OperationView with EventTrigger as you see. However, I want to open CustomerOperationView with a parameter for the datagrid inside of it, and failed in every way…
0
votes
1 answer

MVVM Light EventToCommand and Silverlight DataForm - I need the EventArgs and a custom CommandParameter. Possible?

I have a DataForm bound to a collection of RoleViewModel objects. I'm using MVVMLight's EventToCommand behaviour bound to the EditEnding event of the DataForm to inform my ViewModel when a Role has been edited. Now,... the user edits a role and can…
EightyOne Unite
  • 11,665
  • 14
  • 79
  • 105
0
votes
0 answers

Can't Get Bounding Rectangle as CommandParameter in Bing Map

I am making a Bing Map program using C# WPF MVVM. Whenever the map view in Bing Map changes, I want to bind a BoundingRectangle to the ViewModel and save it. But BoundingRectangle is just a setter. So, I am trying to connect an event rather than a…
Hyeseong
  • 3
  • 2
0
votes
1 answer

Sending selected object from listview on entry unfocused through event to command behavior

I have a listview, within the list view I have an entry box. I want to run some code after the entry box becomes unfocused which I have got working with the xct event to command behavior, but I would like the command to receive the object from the…
WIll Cruz
  • 73
  • 8