0

I am using MvvmLight toolkit for my event interactions, i have tried many solutions available but none worked. The combo box inside my data grid's Selection Changed event is not firing Here is my xaml:

i used both InvokeCommandAction and EventToCommand:

EventToCommand Command="{Binding rlcCbSelectionChanged, Mode=OneWay}"
                                                        PassEventArgsToCommand="True"
 InvokeCommandAction Command="{Binding rlcCbSelectionChanged, Mode=OneWay}"

Please tell me what am i missing?? Selection Changed event successfully fires on data grid with same procedure given above.

zeeshan
  • 55
  • 6

1 Answers1

0

Well answer is quite simple i was missing an attribute that is optional that is why i leave this one previously but that causes selection change event not to fire. So i add my view model key as a static resource and it worked :)

So my working xaml look like :

<i:EventTrigger EventName="SelectionChanged">

                                    <i1:InvokeCommandAction Command="{Binding  Path=rlcCbSelectionChanged, Source={StaticResource dvm}}"/>

                                </i:EventTrigger>
zeeshan
  • 55
  • 6