zoukankan      html  css  js  c++  java
  • ItemsControl

                                <ItemsControl Grid.Row="1"  
                                              ItemsSource="{Binding Content.patientInfoList}" 
                                              Width="{Binding Path=UsablePageWidth, Mode=OneWay}"
                                      AlternationCount="2">
                                    <ItemsControl.ItemTemplate>
                                        <DataTemplate>
                                            <Grid>
                                                <Grid.ColumnDefinitions>
                                                    <ColumnDefinition Width="4*" />
                                                    <ColumnDefinition Width="4*" />
                                                    <ColumnDefinition  Width="3*"/>
                                                    <ColumnDefinition Width="6*" />
                                                    <ColumnDefinition  Width="8*"/>
                                                    <ColumnDefinition Width="5*" />
                                                </Grid.ColumnDefinitions>
                                                <dxe:TextEdit Grid.Column="0" 
                                                              Style="{Binding  Path=.,Converter={StaticResource styleRowConvert}}"
                                                              Text="{Binding Path=.,Converter={StaticResource fullNameConverter}}"/>
                                                
                                                <dxe:TextEdit Grid.Column="1" 
                                                              Style="{Binding Path=.,Converter={StaticResource styleRowConvert}}"
                                                              Text="{Binding Path=Birthday,Converter={StaticResource dateTimeConverter},
                                                    ConverterParameter='MMddyyyy'}"/>
                                                
                                                <dxe:TextEdit Grid.Column="2"  
                                                              Style="{Binding Path=.,Converter={StaticResource styleRowConvert}}" 
                                                              Text="{Binding Path=Gender}"/>
                                                
                                                <dxe:TextEdit Grid.Column="3" 
                                                              Style="{Binding Path=.,Converter={StaticResource styleRowConvert}}" 
                                                              Text="{Binding Path=Ssn}"/>
                                                
                                                <dxe:TextEdit Grid.Column="4" 
                                                              Style="{Binding Path=.,Converter={StaticResource styleRowConvert}}" 
                                                              Text="{Binding Path=Homephone}"/>
                                                
                                                <dxe:TextEdit Grid.Column="5" 
                                                              Style="{Binding Path=.,Converter={StaticResource styleRowConvert}}" 
                                                              BorderThickness="1,0,1,1"
                                                              Text="{Binding Path=Address1}"/>
                                            </Grid>
                                        </DataTemplate>
                                    </ItemsControl.ItemTemplate>
                                </ItemsControl>
  • 相关阅读:
    零基础学习Java Web开发(一)
    域名的定义
    MyEclipse使用(一)
    VB与C#语言部分不用的地方Part1
    使用XmlWriter创建XML文件
    Spring源码
    Websocket原理
    阿里云
    CSS中position属性( absolute | relative | static | fixed )详解
    C#UDP广域网,局域网通信-原理分析
  • 原文地址:https://www.cnblogs.com/quietwalk/p/3531616.html
Copyright © 2011-2022 走看看