按住网格时我有上下文菜单
<Grid Tag="1" Tap="Grid_Tap" Style="{StaticResource GridMedium}">
<Grid.Background>
<ImageBrush Stretch="Fill" ImageSource="/Assets/Images/Page/bg_haivl.png"/>
</Grid.Background>
<toolkit:ContextMenuService.ContextMenu>
<toolkit:ContextMenu>
<toolkit:MenuItem Header="pin to start" Tap="MenuItem_Tap"/>
</toolkit:ContextMenu>
</toolkit:ContextMenuService.ContextMenu>
<Image Source="/Assets/Images/Page/icon_haivl.png" HorizontalAlignment="Center" VerticalAlignment="Top" Width="94" Margin="0,14,0,0" />
<Image Source="/Assets/Images/Page/logo_haivl.png" HorizontalAlignment="Left" VerticalAlignment="Bottom" Width="32" Margin="8,0,0,10" />
</Grid>
如何<Grid Tag="1" Tap="Grid_Tap" Style="{StaticResource GridMedium}"></Grid>
通过 MenuItem_Tap 事件背后的代码获取
private void MenuItem_Tap(object sender, System.Windows.Input.GestureEventArgs e)
{
MenuItem menuItem = (MenuItem)sender;
//...Select Grid here
}