Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
120
Prism/interaction InvokeCommandAction
posted

Hi,

I'm using PRISM/MVVM and want to pass the currently selected item(s) in the data grid when a user selects a row, this is what I've got so far:

<i:Interaction.Triggers>
<i:EventTrigger EventName="SelectedItemsChanged" SourceName="SchemeGrid">
<prism:InvokeCommandAction Command="{Binding SchemeSelectedCommand}" TriggerParameterPath="SelectedItems"></prism:InvokeCommandAction>
</i:EventTrigger>
</i:Interaction.Triggers>

I've tried various properties for the TriggerParameterPath but always get "object instance not set..." When I try using CommandParameter I receive a SelectedItemsChangedEventArgs object - I would like to receive just the selected item object if possible?

Many thanks as always