当前位置: 代码迷 >> Windows Mobile >> listbox内的textblock怎么分成3列
  详细解决方案

listbox内的textblock怎么分成3列

热度:95   发布时间:2016-04-25 07:23:19.0
listbox内的textblock如何分成3列
 
<Grid Grid.Row="1" >
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="*"></ColumnDefinition>
                    <ColumnDefinition Width="*"></ColumnDefinition>
                    <ColumnDefinition Width="*"></ColumnDefinition>

                </Grid.ColumnDefinitions>
                <ListBox Name="listbox" Grid.Row="1" Grid.RowSpan="3">

                    <ListBox.ItemTemplate>
                        <DataTemplate>
                            <StackPanel Orientation="Horizontal"  >

                                <<TextBlock Grid.Column="0" Text="{Binding Date}"></TextBlock>

                                <TextBlock Grid.Column="1"  Text="{Binding Customer}"></TextBlock>
                                <TextBlock Grid.Column="2" Text="{Binding Money}"></TextBlock>
                            </StackPanel>
                        </DataTemplate>
                    </ListBox.ItemTemplate>
  相关解决方案