The event binding of Caliburn.Micro seems not to work with the ListPickerFlyout of Windows Phone 8.1. I want to bind the event ItemsPicked of the Flyout to the corresponding method of my ViewModel.
<ListView
x:Name="Links"
toolkitex:ListViewExtensions.BindableSelection="{Binding Selection}"
cm:Message.Attach="[Event ItemClick] = [Click($link)]">
<FlyoutBase.AttachedFlyout>
<ListPickerFlyout
SelectionMode="Single"
Placement="Full"
ItemsSource="{Binding Lists}"
SelectedItem="{Binding SelectedList, Mode=TwoWay}"
ctrls:FlyoutEx.Parent="{Binding ElementName=Links}"
ctrls:FlyoutEx.IsOpen="{Binding IsListSelectionOpen, Mode=TwoWay}"
cm:Message.Attach="[Event ItemsPicked] = [ItemsPicked($this, $eventArgs)]">
</ListPickerFlyout>
</FlyoutBase.AttachedFlyout>
</ListView>
When the event will be raised, I get the following exception: No target found for method ItemsPicked.
System.Exception: No target found for method ItemsPicked. at Caliburn.Micro.ActionMessage.Invoke(Object eventArgs) at Caliburn.Micro.TriggerAction`1.Execute(Object sender, Object parameter) at Microsoft.Xaml.Interactivity.Interaction.ExecuteActions(Object sender, ActionCollection actions, Object parameter) at Microsoft.Xaml.Interactions.Core.EventTriggerBehavior.OnEvent(Object sender, Object eventArgs)
I also tried it without event and method method parameters but it does not work either.