+
+ Button prev2 = new Button(window)
+ {
+ AlignmentX = -1,
+ WeightX = 1,
+ Text = "animation Prev"
+ };
+ Button next2 = new Button(window)
+ {
+ AlignmentX = -1,
+ WeightX = 1,
+ Text = "animation next"
+ };
+
+ prev2.Clicked += (s, e) =>
+ {
+ Rect region = new Rect(0, _scroller.Geometry.Height * --index, _scroller.Geometry.Width * index, _scroller.Geometry.Height);
+ Console.WriteLine("animation index : {0} [{1}, {2}]\n", index, _scroller.Geometry.Width, _scroller.Geometry.Height);
+ _scroller.ScrollTo(region, true);
+ };
+
+ next2.Clicked += (s, e) =>
+ {
+ Rect region = new Rect(0, _scroller.Geometry.Height * ++index, _scroller.Geometry.Width, _scroller.Geometry.Height);
+ Console.WriteLine("animation index : {0} [{1}, {2}]\n", index, _scroller.Geometry.Width, _scroller.Geometry.Height);
+ _scroller.ScrollTo(region, true);
+ };
+ prev2.Show();
+ next2.Show();
+