How to create clickable pin in MapControl on Windows Phone
<p>i had a following code in xaml</p>

<pre><code>&lt;ListView Grid.Row="2" Grid.ColumnSpan="2"  Visibility="{Binding SwitchText}"  ItemsSource="{Binding Path=FilteredRestaurants}" SelectionMode="Single" IsItemClickEnabled="True"&gt;
                        &lt;ListView.ItemTemplate&gt;
                            &lt;DataTemplate&gt;
                                &lt;StackPanel&gt;
                                    &lt;TextBlock Text="{Binding name}" Style="{StaticResource TextBlockInfoFriTheme}" 
                                    TextWrapping="Wrap" /&gt;
                                &lt;/StackPanel&gt;
                            &lt;/DataTemplate&gt;
                        &lt;/ListView.ItemTemplate&gt;
                        &lt;Interactivity:Interaction.Behaviors&gt;
                            &lt;core:EventTriggerBehavior EventName="ItemClick"&gt;
                                &lt;core:InvokeCommandAction Command="{Binding Path=ShowDetailCommand}" /&gt;
                            &lt;/core:EventTriggerBehavior&gt;
                        &lt;/Interactivity:Interaction.Behaviors&gt;
&lt;/ListView&gt;
</code></pre>

<p>and a viewmodel </p>

<pre><code>ShowDetailCommand = new DelegateCommand&lt;ItemClickEventArgs&gt;(async (args) =&gt;
            {
                Restaurant restaurant = args.ClickedItem as Restaurant;
                MessageDialog dialog = new MessageDialog(restaurant.toString());
                await dialog.ShowAsync();
            });
</code></pre>

<p>That works perfectly fine when i click on the item, so i tried the same aproach in maps and it dosent work. From what i could google it the problem is that i cant use IsItemClickEnabled="True" anywhere here so what are my other options? Because id like to have the same functionality when i click on the pin.</p>

<p>So this is xaml from my other PivotItem:</p>

<pre><code>&lt;Maps:MapItemsControl ItemsSource="{Binding FilteredRestaurants}"  &gt;
                        &lt;Maps:MapItemsControl.ItemTemplate&gt;
                            &lt;DataTemplate &gt;
                                &lt;StackPanel 
                            Maps:MapControl.NormalizedAnchorPoint="0.5,1" 
                            Maps:MapControl.Location="{Binding coordinates,Converter={StaticResource CoordinatesToGeopointConverter}}"
                            Width="Auto" Height="Auto"  &gt;

                                &lt;Interactivity:Interaction.Behaviors&gt;
                                    &lt;core:EventTriggerBehavior EventName="ItemClick"&gt;
                                        &lt;core:InvokeCommandAction Command="{Binding ShowFoodLocationDetails}" /&gt;
                                    &lt;/core:EventTriggerBehavior&gt;
                                &lt;/Interactivity:Interaction.Behaviors&gt;

                                &lt;Grid x:Name="FoodContentGrid"  Height="Auto" Width="Auto" &gt;
                                    &lt;Rectangle Fill="#FF3FC500" Height="Auto" Width="Auto" RadiusX="3" RadiusY="3"/&gt;
                                    &lt;StackPanel HorizontalAlignment="Center" Margin="5" &gt;
                                        &lt;TextBlock x:Name="FoodLocationName"  Text="{Binding name}" FontSize="14" Foreground="White" HorizontalAlignment="Center" /&gt;
                                    &lt;/StackPanel&gt;
                                &lt;/Grid&gt;
                                &lt;Path Data="M33.4916,35.3059 L42.1937,35.3059 L38.1973,40.6036 z" Fill="#FF3FC500" HorizontalAlignment="Center" Height="6.302" Margin="0,-1,0,0" Stretch="Fill" UseLayoutRounding="False" Width="9.702"/&gt;
                            &lt;/StackPanel&gt;
                        &lt;/DataTemplate&gt;
                    &lt;/Maps:MapItemsControl.ItemTemplate&gt;
                &lt;/Maps:MapItemsControl&gt;
</code></pre>

<p>So id be very gratefull for any suggestions on how to ivoke my commad.
Also a semi related question. Is it possible to use MapIcon in strictly MVVM architecture? Because it looked much better when i used Maps in code behind Views but im changing it cause having strict MVVM is currently more important</p>