<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;
}
}
--------------------------------------------------------------------------------------------------------------------------------------------
顺势而为