|
71 | 71 | </StackPanel> |
72 | 72 | <!--<StackPanel Grid.Row="2" |
73 | 73 | Orientation="Vertical">--> |
74 | | - <ScrollViewer Grid.Row="2" |
75 | | - IsEnabled="True"> |
76 | | - <DataGrid x:Name="lv_Entries" |
| 74 | + <ListView x:Name="lv_Entries" |
77 | 75 | SelectionChanged="lv_Entries_SelectionChanged" |
78 | | - Grid.Row="2" |
79 | | - CanUserSortColumns="True" |
80 | | - CanUserAddRows="False" |
81 | | - AutoGenerateColumns="False"> |
82 | | - <DataGrid.Columns> |
83 | | - <DataGridTextColumn Header="{x:Static resources:EntryOverview.ColumnName}" Binding="{Binding Path=Name}"> |
84 | | - </DataGridTextColumn> |
85 | | - <DataGridTextColumn Header="{x:Static resources:EntryOverview.ColumnDescription}" Binding="{Binding Path=Description}"> |
86 | | - </DataGridTextColumn> |
87 | | - <DataGridTextColumn Header="{x:Static resources:EntryOverview.ColumnStart}" Binding="{Binding Path=StartAsString}"> |
88 | | - </DataGridTextColumn> |
89 | | - <DataGridTextColumn Header="{x:Static resources:EntryOverview.ColumnEnd}" Binding="{Binding Path=EndAsString}"> |
90 | | - </DataGridTextColumn> |
91 | | - <DataGridTextColumn Header="{x:Static resources:EntryOverview.ColumnDuration}" Binding="{Binding Path=DurationAsString}"> |
92 | | - </DataGridTextColumn> |
93 | | - <DataGridTextColumn Header="{x:Static resources:EntryOverview.ColumnProject}" Binding="{Binding Path=ProjectName}"> |
94 | | - </DataGridTextColumn> |
95 | | - <DataGridTextColumn Header="{x:Static resources:EntryOverview.ColumnSubtask}" Binding="{Binding Path=SubtaskName}"> |
96 | | - </DataGridTextColumn> |
97 | | - </DataGrid.Columns> |
98 | | - </DataGrid> |
99 | | - </ScrollViewer> |
| 76 | + Grid.Row="2" Background="{StaticResource BackgroundGrey}" Foreground="{StaticResource LightWhite}"> |
| 77 | + <ListView.View> |
| 78 | + <GridView> |
| 79 | + <GridView.Columns> |
| 80 | + <GridViewColumn Header="{x:Static resources:EntryOverview.ColumnName}" DisplayMemberBinding="{Binding Path=Name}"> |
| 81 | + </GridViewColumn> |
| 82 | + <GridViewColumn Header="{x:Static resources:EntryOverview.ColumnDescription}" DisplayMemberBinding="{Binding Path=Description}"> |
| 83 | + </GridViewColumn> |
| 84 | + <GridViewColumn Header="{x:Static resources:EntryOverview.ColumnStart}" DisplayMemberBinding="{Binding Path=StartAsString}"> |
| 85 | + </GridViewColumn> |
| 86 | + <GridViewColumn Header="{x:Static resources:EntryOverview.ColumnEnd}" DisplayMemberBinding="{Binding Path=EndAsString}"> |
| 87 | + </GridViewColumn> |
| 88 | + <GridViewColumn Header="{x:Static resources:EntryOverview.ColumnDuration}" DisplayMemberBinding="{Binding Path=DurationAsString}"> |
| 89 | + </GridViewColumn> |
| 90 | + <GridViewColumn Header="{x:Static resources:EntryOverview.ColumnProject}" DisplayMemberBinding="{Binding Path=ProjectName}"> |
| 91 | + </GridViewColumn> |
| 92 | + <GridViewColumn Header="{x:Static resources:EntryOverview.ColumnSubtask}" DisplayMemberBinding="{Binding Path=SubtaskName}"> |
| 93 | + </GridViewColumn> |
| 94 | + </GridView.Columns> |
| 95 | + </GridView> |
| 96 | + </ListView.View> |
| 97 | + </ListView> |
100 | 98 | <!--</StackPanel>--> |
101 | 99 | </Grid> |
102 | 100 | </Page> |
0 commit comments