Silverlight scrollviewer中的按钮问题
各位。我无法找到解决我问题的方法,尽管我相信其他人也遇到过这种情况。基本上,在scrollviewer中的包裹面板中有20个按钮。问题是,当我想要滚动列表时,click事件触发触发器。真的很感谢你在这方面的帮助Silverlight scrollviewer中的按钮问题,silverlight,windows-phone-7,Silverlight,Windows Phone 7,各位。我无法找到解决我问题的方法,尽管我相信其他人也遇到过这种情况。基本上,在scrollviewer中的包裹面板中有20个按钮。问题是,当我想要滚动列表时,click事件触发触发器。真的很感谢你在这方面的帮助 <ScrollViewer> <ScrollViewer.Content> <toolkit:WrapPanel Orientation="Horizontal" Horizont
<ScrollViewer>
<ScrollViewer.Content>
<toolkit:WrapPanel Orientation="Horizontal"
HorizontalAlignment="Left"
VerticalAlignment="Top"
Width="420">
<Button Style="{StaticResource imageButtonStyle}" >
<i:Interaction.Triggers>
<i:EventTrigger EventName="Click">
<cmd2:EventToCommand Command="{Binding SelectCommand, Mode=OneWay}"
CommandParameterValue="1" />
</i:EventTrigger>
</i:Interaction.Triggers>
</Button>
<Button Style="{StaticResource imageButtonStyle}">
<i:Interaction.Triggers>
<i:EventTrigger EventName="Click">
<cmd2:EventToCommand Command="{Binding SelectCommand, Mode=OneWay}"
CommandParameterValue="2" />
</i:EventTrigger>
</i:Interaction.Triggers>
</Button>
<Button Style="{StaticResource imageButtonStyle}">
<i:Interaction.Triggers>
<i:EventTrigger EventName="MouseEnter">
<cmd2:EventToCommand Command="{Binding SelectCommand, Mode=OneWay}"
CommandParameterValue="3" />
</i:EventTrigger>
</i:Interaction.Triggers>
</Button>
<Button Style="{StaticResource imageButtonStyle}">
<i:Interaction.Triggers>
<i:EventTrigger EventName="MouseEnter">
<cmd2:EventToCommand Command="{Binding SelectCommand, Mode=OneWay}"
CommandParameterValue="4" />
</i:EventTrigger>
</i:Interaction.Triggers>
</Button>
</toolkit:WrapPanel>
</ScrollViewer.Content>
尝试使用silverlight工具箱中的手势侦听器部分来区分轻敲和轻弹,而不是使用事件单击是否触发事件?还是
MouseEnter
事件?我以为点击是在释放触摸之后发生的,而不是触摸本身。MouseEnter在手机上的意思是什么?手势似乎很好地解决了这些类型的用户界面模糊问题。