欢迎来到Doc100.Net免费学习资源知识分享平台!
您的位置:首页 > 程序异常 >

怎么定位listview中的item

更新时间: 2014-01-05 02:39:19 责任编辑: Author_N1

 

如何定位ListView中的Item?
局部的xmal代码:

<ListView x:Name="ListView_SongList" Padding="55,0,10,0"
                          ItemContainerStyle="{StaticResource RecommendItemContainerStyle}" IsItemClickEnabled="True" ItemClick="ListView_SongList_ItemClick" SelectionChanged="ListView_SelectionChanged">
                            <ListView.ItemTemplate>
                                <DataTemplate ScrollViewer.VerticalScrollBarVisibility="Auto" ScrollViewer.HorizontalScrollBarVisibility="Auto">
                                    <Grid Width="1000" Height="40">
                                        <Grid Grid.ColumnSpan="4" Background="White" Opacity="0.1"/>
                                        <Grid Height="36" Margin="10,6,0,0">
                                            <Grid.ColumnDefinitions>
                                                <ColumnDefinition/>
                                                <ColumnDefinition Width="0.7*"/>
                                                <ColumnDefinition Width="0.6*"/>
                                                <ColumnDefinition Width="0.5*"/>
                                            </Grid.ColumnDefinitions>
                                            <TextBlock x:Name="FileName_TextBlock" Grid.Column="0" Text="{Binding FileName}" Style="{StaticResource ListViewTextStyle}" />
上一篇:上一篇
下一篇:下一篇

 

随机推荐程序问答结果

 

 

如对文章有任何疑问请提交到问题反馈,或者您对内容不满意,请您反馈给我们DOC100.NET论坛发贴求解。
DOC100.NET资源网,机器学习分类整理更新日期::2014-01-05 02:39:19
如需转载,请注明文章出处和来源网址:http://www.doc100.net/bugs/t/12743/
本文WWW.DOC100.NET DOC100.NET版权所有。