<UserControl.Resources> <DataTemplate x:Key="batchItem"> <vw:BatchDetail /> </DataTemplate> </UserControl.Resources> <Grid> <Grid.Resources> <SolidColorBrush x:Key="{x:Static SystemColors.HighlightBrushKey}" Color="LightSteelBlue"/> <SolidColorBrush x:Key="{x:Static SystemColors.HighlightTextBrushKey}" Color="Black"/> </Grid.Resources> <ListView HorizontalAlignment="Center" BorderThickness="0" ItemsSource="{Binding Path=ExistingBatches}" ItemTemplate="{DynamicResource batchItem}" SelectedItem="{Binding Path=SelectedBatch}"> </ListView> </Grid>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)