ItemsControl

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>
ItemsControl

ItemsControl

上一篇:Style 的查找 FindResource


下一篇:java.lang.OutOfMemoryError: allocLargeArray内存溢出