This question is locked. New answers and comments are not allowed.
Hi,
I'm having a problem using an interaction trigger (EventToCommand) with the RadJumpList.
Xaml:
ViewModel:
The GoToDetailsPage is receiving a null msg, however if I swop it out for a standard ListBox everything works just fine.
Am I doing something wrong? Or does the RadJumpList not support the interaction trigger way?
Cheers
Simon
I'm having a problem using an interaction trigger (EventToCommand) with the RadJumpList.
Xaml:
<telerikDataControls:RadJumpList x:Name="jumpList" ItemsSource="{Binding Items}"> <i:Interaction.Triggers> <i:EventTrigger EventName="SelectionChanged"> <cmd:EventToCommand Command="{Binding Path=DetailsPageCommand, Mode=OneWay}" CommandParameter="{Binding SelectedItem, ElementName=jumpList}" /> </i:EventTrigger> </i:Interaction.Triggers> . . .ViewModel:
. . . public RelayCommand<Item> DetailsPageCommand { get; private set; } public ItemViewModel { DetailsPageCommand = new RelayCommand<Item>((msg) => GoToDetailsPage(msg)); } private object GoToDetailsPage(Item msg) { MessageBox.Show("Go to details page with: " + msg.ItemId); return null; } . . .The GoToDetailsPage is receiving a null msg, however if I swop it out for a standard ListBox everything works just fine.
Am I doing something wrong? Or does the RadJumpList not support the interaction trigger way?
Cheers
Simon