Windows phone 8 将图像添加到透视页面标题并处理触摸
我试图添加图像旁边的枢轴控制标题,我想能够触摸它。但我不能,我想这是因为pivot在处理触球。这是我的代码:Windows phone 8 将图像添加到透视页面标题并处理触摸,windows-phone-8,windows-phone,touch,gesture,Windows Phone 8,Windows Phone,Touch,Gesture,我试图添加图像旁边的枢轴控制标题,我想能够触摸它。但我不能,我想这是因为pivot在处理触球。这是我的代码: <Grid Margin="162,22,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Tap="MessagesIcon_OnTap"> <Image Source="/Assets/Images/Icons/messages_icon.png"
<Grid Margin="162,22,0,0" VerticalAlignment="Top" HorizontalAlignment="Left"
Tap="MessagesIcon_OnTap">
<Image Source="/Assets/Images/Icons/messages_icon.png"
x:Name="MessagesIcon"
Stretch="Fill" Opacity="1" Width="20" Height="22"
Tap="MessagesIcon_OnTap"/>
</Grid>
<phone:Pivot x:Name="PlayerPivot" Title="TITLE" >
<!--Pivot item one-->
<phone:PivotItem Margin="0" x:Name="PlayingPivotItem">
<phone:PivotItem.Header>
<TextBlock Text="subtitle" />
</phone:PivotItem.Header>
<Grid x:Name="ContentPanel">
...
...
正如你们所看到的,我试着在这两个(包含图像和图像本身的网格)上捕捉点击,但它不是调用。在图像上获得点击手势的最简单方法是什么?谢谢请尝试使用此片段:
<controls:Pivot.Title>
<StackPanel>
<TextBlock Text="title" />
<Image Source="/Images/anyimage.png"/>
</StackPanel>
</controls:Pivot.Title>
我不知道我可以像这样更改Pivot的标题。现在它开始工作了。谢谢