zoukankan      html  css  js  c++  java
  • WPF学习记录1:ListView的一个模板

    在网上找的一个模板,放在这里,作为笔记,收集

    <ListView Grid.Column="1" Grid.Row="1" Name="ListmuLu" >
                    <ListView.ItemTemplate>
                        <DataTemplate>
                            <StackPanel>
                                <WrapPanel>
                                    <Label Content="驾驶员姓名:"/>
                                    <TextBox Text="{Binding Path=Pilot}" Height="23" Width="100"/>
                                </WrapPanel>
                                <WrapPanel>
                                    <Label Content="识别车牌:"/>
                                    <TextBlock Text="{Binding Path=CarNO1}"/>
                                </WrapPanel>
                                <WrapPanel>
                                    <Label Content="正确车牌:"/>
                                    <TextBlock Text="{Binding Path=CarNO2}"/>
                                </WrapPanel>
                                <WrapPanel>
                                    <Label Content="违章日期:"/>
                                    <TextBlock Text="{Binding Path=Date}"/>
                                </WrapPanel>
                                <WrapPanel>
                                    <Label Content="违章路段:"/>
                                    <TextBlock Text="{Binding Path=Sections}"/>
                                </WrapPanel>
                                <WrapPanel>
                                    <Label Content="违章类型:"/>
                                    <TextBlock Text="{Binding Path=Type}"/>
                                </WrapPanel>
                                <WrapPanel>
                                    <Label Content="违章等级:"/>
                                    <TextBlock Text="{Binding Path=Level}"/>
                                </WrapPanel>
                                <WrapPanel>
                                    <Label Content="违章车型:"/>
                                    <TextBlock Text="{Binding Path=Models}"/>
                                </WrapPanel>
                                <WrapPanel>
                                    <Label Content="车辆所属单位:"/>
                                    <TextBlock Text="{Binding Path=Units}"/>
                                </WrapPanel>
                                <WrapPanel>
                                    <Label Content="所扣分数:"/>
                                    <TextBlock Text="{Binding Path=Score}"/>
                                </WrapPanel>
                                <WrapPanel>
                                    <Label Content="有效状态:"/>
                                    <TextBox Text="{Binding Path=Status}" Height="23" Width="100"/>
                                    <ComboBox  Height="23" Width="100" SelectedValue="{Binding Path=Status, Mode=OneWay}">
                                        <ComboBoxItem Content="有效"/>
                                        <ComboBoxItem Content="无效"/>
                                    </ComboBox>
                                </WrapPanel>
                            </StackPanel>
                        </DataTemplate>
                    </ListView.ItemTemplate>
                </ListView>
  • 相关阅读:
    HDU 3068 最长回文
    UVa 1377 / LA 3667 Ruler
    HDU 1540 Tunnel Warfare
    POJ 3450 Corporate Identity
    外贸网站成功运营五个要点
    SEO白帽必备孙子兵法之三十六计
    修改zencart模版的相关资料
    怎么做友情链接,PR值即将更新之际 教你10招快速提升PR值到4
    基于zencart搭建外贸网站流程
    网站内链优化需要考虑的方面
  • 原文地址:https://www.cnblogs.com/fmy-hmfy/p/3600485.html
Copyright © 2011-2022 走看看