win10 UWP FlipView
最后更新于:2022-04-01 20:23:09
FlipView
可以让用户逐个浏览的项目集合
~~~
~~~

上下滚动
~~~
~~~
自动
FlipView x:Name=”xf”
在MainPage.xaml.cs
~~~
DispatcherTimer time = new DispatcherTimer();
time.Interval = new TimeSpan(0,0,1);
time.Tick += Time_Tick;
time.Start();
~~~
~~~
private void Time_Tick(object sender , object e)
{
int i = xf.SelectedIndex;
i++;
if (i >= xf.Items.Count)
{
i = 0;
}
xf.SelectedIndex = i;
}
~~~
';