GridViewColumn.CellTemplate

GridViewColumn.CellTemplate
              <GridViewColumn Header="Sig" Width="210">
                       <GridViewColumn.CellTemplate>
                           <DataTemplate>
                                <StackPanel Orientation="Horizontal">
                                  <TextBlock Text="{Binding Path=Dose}" Margin="0,2,2,2"></TextBlock>
                                   <TextBlock Text="{Binding Path=DoseUnit}" Margin="2"></TextBlock>
                                   <TextBlock Text="{Binding Path=RouteName}" Margin="2"></TextBlock>
                                   <TextBlock Text="{Binding Path=DoseTiming}" Margin="2"></TextBlock>
                                  <TextBlock Text="{Binding Path=DoseOther}" Margin="2"></TextBlock>
                                </StackPanel>
                            </DataTemplate>
                       </GridViewColumn.CellTemplate>
               </GridViewColumn
GridViewColumn.CellTemplate

GridViewColumn.CellTemplate

上一篇:WPF 依赖属性


下一篇:Grid 拾遗