0
我們試圖在用戶嘗試在Windows Phone 8 Silverlight中滾動RadDataBoundListbox時發現垂直偏移量。例如:滾動列表框的位置。如何獲得RadDataBoundListBox中的滾動偏移量?
到目前爲止,我們試圖用ScrollStateChanged事件註冊,但該事件僅返回滾動狀態像TopStretch,滾動,NotScrolling等
<telerikPrimitives:RadDataBoundListBox x:Name="MessagesList" IsAsyncBalanceEnabled="True" Style="{StaticResource RadDataBoundListBoxStyle1}">
<i:Interaction.Triggers>
<i:EventTrigger EventName="ScrollStateChanged">
<Command:EventToCommand Command="{Binding ScrollChangedCommand}" PassEventArgsToCommand="True"/>
</i:EventTrigger>
</i:Interaction.Triggers>
</telerikPrimitives:RadDataBoundListBox>
我們無法找到任何事件/方法來解決這個問題。
解決此問題的任何想法可能會有所幫助。
謝謝。
有關如何從RadDataBoundListBox獲取ScrollViewer的任何線索? – prdp89
從Coding4Fun工具包中查看ak VisualTreeHelper或TemplatedVisualTreeExtensions.GetFirstLogicalChildByType方法 –