Monday, October 27, 2014

ScrollViewer.ViewChanged not rise

Hi Alexey.U


How i can emulate scroll whole page with scroll event?


-> Use following code to scroll to a specific position.



TimeSpan period = TimeSpan.FromMilliseconds(10);
Windows.System.Threading.ThreadPoolTimer.CreateTimer(async (source) =>
{
await Dispatcher.RunAsync(Windows.UI.Core.CoreDispatcherPriority.Normal, () =>
{
scrollviewer.ChangeView(xPos,yPos,ratio);
});
}
, period);



--James


<THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>

Thanks

MSDN Community Support



Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.


No comments:

Post a Comment