zoukankan      html  css  js  c++  java
  • win10 UWP FlipView

    FlipView

    可以让用户逐个浏览的项目集合

            <FlipView Grid.Row="0" Height="100" Margin="10,10,10,10">
                <Image Source="Assets/QQ.png"/>
                <Image Source="Assets/搜狐.png"/>
                <Image Source="Assets/暴风影音.png"/>
                <Image Source="Assets/芒果.png"/>
                <Image Source="Assets/迅雷看看.png"/>
            </FlipView>

    这里写图片描述

    上下滚动

            <FlipView Grid.Row="0" Height="100" Margin="10,10,10,10">
                <Image Source="Assets/QQ.png"/>
                <Image Source="Assets/搜狐.png"/>
                <Image Source="Assets/暴风影音.png"/>
                <Image Source="Assets/芒果.png"/>
                <Image Source="Assets/迅雷看看.png"/>
                <FlipView.ItemsPanel>
                    <ItemsPanelTemplate>
                        <VirtualizingStackPanel Orientation="Vertical"/>
                    </ItemsPanelTemplate>
                </FlipView.ItemsPanel>
            </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;
            }
  • 相关阅读:
    cf1131f 构造+并查集
    多源最短路小结
    bzoj2200拓扑排序+最短路+联通块
    cf478d 线性dp好题
    cf919D 线性dp+拓扑排序
    hiho1460 rmq模板题
    最小标示法模板 poj1509
    JAVA动态代理机制分析guide
    java动态代理(JDK和cglib)
    AOP面向切面编程
  • 原文地址:https://www.cnblogs.com/lindexi/p/12087688.html
Copyright © 2011-2022 走看看