<ListView BorderBrush="Red" BorderThickness="2" Name="lv1" HorizontalAlignment="Left" Height="340" Margin="382,66,0,0" VerticalAlignment="Top" Width="310">
<ListView.ItemTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding Name}" Margin="10,10,10,10"/>
<TextBlock Text="{Binding Age}" Margin="10,10,10,10"/>
<Image Source="{Binding Img}" Width="50" Height="50" Margin="10,10,10,10"/>
</StackPanel>
</DataTemplate>
</ListView.ItemTemplate>
list.Add(new Person() { Name = "张三姐", Age = 21, Img = "ms-appx:///images/林心如.jpg" });
list.Add(new Person() { Name = "李四哥", Age = 22, Img = "ms-appx:///images/林志颖.jpg" });
list.Add(new Person() { Name = "志玲姐", Age = 21, Img = "ms-appx:///images/林志玲.jpg" });
this.lv1.ItemsSource = list;
【win8歌词渐变效果实现代码】相关文章:
★ 微软将为Win7/Win8.1推新型月度更新补丁 每月仅送一次
★ win7系统安装游戏出现错误代码0xc00000d原因及解决方法
★ Win10 Mobile一周年更新预览版14371已支持72种新Emoji表情
★ Win10 Mobile内置here离线地图包数据怎么升级?
★ Win10如何使用Windows Defender Offline来查找并删除恶意软件
★ Win7系统连接宽带提示"正在连接,通过WAN Miniport(pppoe)"一直连接不上的解决方法
★ Win10 Mobile正式版10586.318更新内容汇总