C# 避免windows phone 8.1中上下文菜单父级的动画
我在列表框itemtemplate中的网格中有一个上下文菜单。长按此按钮时,将显示带有列表框项(网格)轻微动画的关联菜单 我只需要删除listbox项的弹出动画,因为内容看起来像是失去了焦点 我的代码C# 避免windows phone 8.1中上下文菜单父级的动画,c#,xaml,windows-phone-8.1,C#,Xaml,Windows Phone 8.1,我在列表框itemtemplate中的网格中有一个上下文菜单。长按此按钮时,将显示带有列表框项(网格)轻微动画的关联菜单 我只需要删除listbox项的弹出动画,因为内容看起来像是失去了焦点 我的代码 <ListBox.ItemTemplate> <DataTemplate> <Grid Margin="15,10,0,10" Height="80" Width="auto"
<ListBox.ItemTemplate>
<DataTemplate>
<Grid Margin="15,10,0,10" Height="80" Width="auto" Tag="{Binding .}">
<toolkit:ContextMenuService.ContextMenu>
<toolkit:ContextMenu Opened="ContextMenu_Opened">
<toolkit:MenuItem Header="delete" Tag="{Binding .}" Click="Delete_MenuItem_Click" />
</toolkit:ContextMenu>
</toolkit:ContextMenuService.ContextMenu>
对不起,如果这个问题是愚蠢的 只需设置
IsZoomEnabled=“False”
因此,在您的情况下,它将是:
<ListBox.ItemTemplate>
<DataTemplate>
<Grid Margin="15,10,0,10" Height="80" Width="auto" Tag="{Binding .}">
<toolkit:ContextMenuService.ContextMenu>
<toolkit:ContextMenu IsZoomEnabled="False Opened="ContextMenu_Opened">
<toolkit:MenuItem Header="delete" Tag="{Binding .}" Click="Delete_MenuItem_Click" />
</toolkit:ContextMenu>
</toolkit:ContextMenuService.ContextMenu>