<Grid > <ListView x:Name="testView" Margin="60,50,0,60" Background="Red" Width="300" HorizontalAlignment="Left"> <ListView.ItemTemplate> <DataTemplate> <Grid Height="110" Margin="6"> <Grid.ColumnDefinitions> <ColumnDefinition Width="Auto"/> <ColumnDefinition Width="*"/> </Grid.ColumnDefinitions> <StackPanel Grid.Column="1" VerticalAlignment="Top" Margin="10,0,0,0" Background="Beige"> <TextBlock TextWrapping="NoWrap"/> <TextBlock MaxHeight="60"/> </StackPanel> </Grid> </DataTemplate> </ListView.ItemTemplate> </ListView> </Grid>
class Person { public: std::string name; std::string description; }; MainWindow::MainWindow() { InitializeComponent(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)