<ListBox x:Name="lstTrips" ItemsSource="{Binding}" >
                <ListBox.ItemTemplate>
                    <DataTemplate>
                        <StackPanel>
                            <TextBlock Text="{Binding Name}" ></TextBlock>
                            <StackPanel>
                                <TextBlock Text="{Binding Opt}"></TextBlock>
                                <TextBlock Text="{Binding AddTime}"></TextBlock>
                            </StackPanel>
                        </StackPanel>
                    </DataTemplate>
                </ListBox.ItemTemplate>
            </ListBox>

lstTrips.DataContext = objDealer.Trips;

相关文章:

  • 2021-12-13
  • 2021-06-08
  • 2021-05-31
  • 2022-02-03
  • 2022-12-23
  • 2021-10-11
  • 2021-12-17
猜你喜欢
  • 2021-09-23
  • 2022-12-23
  • 2021-05-25
  • 2022-12-23
  • 2022-12-23
  • 2021-08-01
  • 2021-05-27
相关资源
相似解决方案