win10 UWP FlipView
最后更新于:2022-04-01 20:23:09
FlipView
可以让用户逐个浏览的项目集合
~~~
~~~
![这里写图片描述](https://docs.gechiui.com/gc-content/uploads/sites/kancloud/2016-04-08_5707636ba7c6b.jpg "")
上下滚动
~~~
~~~
自动
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;
}
~~~
';