Silverlight 防止手机在滚动时发送MouseLeftButtonUp事件
如何防止windows phone 7在用户滚动时向我的网格发送MouseLeftButtonUp事件(我将其用作按钮) 这个问题有时会导致在用户滚动时导航到另一个页面 或者我应该为此使用按钮模板吗 示例代码:Silverlight 防止手机在滚动时发送MouseLeftButtonUp事件,silverlight,windows-phone,Silverlight,Windows Phone,如何防止windows phone 7在用户滚动时向我的网格发送MouseLeftButtonUp事件(我将其用作按钮) 这个问题有时会导致在用户滚动时导航到另一个页面 或者我应该为此使用按钮模板吗 示例代码: <ScrollViewer> <StackPanel> <Grid x:Name="Button1" MouseLeftButtonUp="Button1_LeftMouseButtonUp"> <
<ScrollViewer>
<StackPanel>
<Grid x:Name="Button1" MouseLeftButtonUp="Button1_LeftMouseButtonUp">
<TextBlock Margin="12 15" />
</Grid>
</StackPanel>
</ScrollViewer>
尝试以下操作,而不是LeftMouseButtonUp事件
private void Button1_ManipulationCompleted(object sender, ManipulationCompletedEventArgs e)
{
if (!e.IsInertial)
{
//Button Click Code
}
}
你找到解决这个问题的方法了吗?我用了一个带有控件模板的按钮。