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>
  • 相关阅读:
    Delphi 的字符及字符串 Char、AnsiChar、WideChar、PChar、PAnsiChar、PWideChar
    C# DllImport的用法
    delphi 枚举类型与字符串的转换
    MSSQL2005不能用IP访问
    Delphi制作DLL
    Delphi接口的底层实现
    MacBook下每次SourceTree每次拉取代码都要输入密码解决办法
    因子分析AF
    蒲公英组网
    485通信
  • 原文地址:https://www.cnblogs.com/fmy-hmfy/p/3600485.html
Copyright © 2011-2022 走看看