防止滚动时手机发送MouseLeftButtonUp事件

| 当用户滚动时,如何防止Windows Phone 7将MouseLeftButtonUp事件发送到我的网格(用作按钮)? 仅当用户滚动时,此问题有时会导致导航到另一个页面。 还是应该为此使用Button-Template? 示例代码:
<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
    }
}
    

要回复问题请先登录注册