Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我很难弄清楚如何设置HorizontalOffset和ScrollToHorizontalOffset. ScrollViewer我需要将它们设置为StoryBoard.
HorizontalOffset
ScrollToHorizontalOffset
ScrollViewer
StoryBoard
scrollViewer.ScrollToHorizontalOffset(h); scrollViewer.ScrollToVerticalOffset(v);
我注意到您标记了 Windows 8(Metro/WinRT?),因此虽然下面的答案似乎与 WPF 有关,但它可能有效或至少给您一些想法。
http://marlongrech.wordpress.com/2009/09/14/how-to-set-wpf-scrollviewer-verticaloffset-and-horizontal-offset/