zoukankan      html  css  js  c++  java
  • FlipView使用

     <FlipView Name="fv" Margin="100,100,0,0" Width="500" Height="200">
                <FlipView.ItemTemplate>
                    <DataTemplate>
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition></RowDefinition>
                                <RowDefinition></RowDefinition>
                            </Grid.RowDefinitions>
                            <Image Source="{Binding Image}" Grid.Row="0" Grid.RowSpan="2"></Image>
                            <Grid Height="50" Background="Yellow"  Grid.Row="1" >
                                <TextBlock Text="{Binding Name}"></TextBlock>
                            </Grid>
    
                        </Grid>
                    </DataTemplate>
                </FlipView.ItemTemplate>
            </FlipView>
     protected override void OnNavigatedTo(NavigationEventArgs e)
            {
                if (e.NavigationMode == NavigationMode.New)
                {
                    List<CounteryInfo> list = new List<CounteryInfo>();
                    list.Add(new CounteryInfo { Name = "321", Image = "ms-appx:///images/w_bizhi.jpg" });
                    list.Add(new CounteryInfo { Name = "432", Image = "ms-appx:///images/w_meinv.jpg" });
                    fv.ItemsSource = list;
                }
    
            }
  • 相关阅读:
    C++中的函数
    C++基本语句
    面向对象程序设计
    数据结构中的算法
    数据结构开篇
    条件编译
    文件包含
    简单的宏替换
    系统启动过程
    parted 命令学习
  • 原文地址:https://www.cnblogs.com/zhuzhenyu/p/2799854.html
Copyright © 2011-2022 走看看