|
245 | 245 | </Style>
|
246 | 246 | </UserControl.Resources>
|
247 | 247 | <Grid>
|
| 248 | + <Grid.RowDefinitions> |
| 249 | + <RowDefinition Height="Auto"/> |
| 250 | + <RowDefinition Height="*"/> |
| 251 | + </Grid.RowDefinitions> |
| 252 | + |
248 | 253 | <StackPanel Margin="5,5,5,0">
|
249 | 254 | <Label Background="DarkGray"
|
250 | 255 | HorizontalContentAlignment="Stretch"
|
|
311 | 316 | </Button>
|
312 | 317 | </ToolBar>
|
313 | 318 | </ToolBarTray>
|
314 |
| - <DataGrid Name="TodoMarkerGrid" |
315 |
| - ItemsSource="{Binding TodoSettings}" |
316 |
| - AutoGenerateColumns="False" |
317 |
| - CanUserReorderColumns="False" |
318 |
| - IsReadOnly="False" |
319 |
| - SelectionMode="Single" |
320 |
| - CanUserAddRows="False" |
321 |
| - HorizontalGridLinesBrush="Transparent" |
322 |
| - VerticalGridLinesBrush="Transparent" |
323 |
| - HeadersVisibility="Column" |
324 |
| - ScrollViewer.HorizontalScrollBarVisibility="Disabled" |
325 |
| - ItemContainerStyle="{StaticResource PrettifyRow}" |
326 |
| - ColumnHeaderHeight="22" |
327 |
| - BorderThickness="0" |
328 |
| - CellEditEnding="TodoMarkerGrid_CellEditEnding"> |
329 |
| - <DataGrid.InputBindings> |
330 |
| - <KeyBinding Key="Delete" |
| 319 | + </StackPanel> |
| 320 | + <DataGrid Name="TodoMarkerGrid" |
| 321 | + Grid.Row="1" |
| 322 | + Margin="5,0,5,5" |
| 323 | + ItemsSource="{Binding TodoSettings}" |
| 324 | + AutoGenerateColumns="False" |
| 325 | + CanUserReorderColumns="False" |
| 326 | + IsReadOnly="False" |
| 327 | + SelectionMode="Single" |
| 328 | + CanUserAddRows="False" |
| 329 | + HorizontalGridLinesBrush="Transparent" |
| 330 | + VerticalGridLinesBrush="Transparent" |
| 331 | + HeadersVisibility="Column" |
| 332 | + ScrollViewer.CanContentScroll="True" |
| 333 | + ScrollViewer.VerticalScrollBarVisibility="Auto" |
| 334 | + ScrollViewer.HorizontalScrollBarVisibility="Disabled" |
| 335 | + ItemContainerStyle="{StaticResource PrettifyRow}" |
| 336 | + ColumnHeaderHeight="22" |
| 337 | + BorderThickness="0" |
| 338 | + CellEditEnding="TodoMarkerGrid_CellEditEnding"> |
| 339 | + <DataGrid.InputBindings> |
| 340 | + <KeyBinding Key="Delete" |
331 | 341 | Command="{Binding DeleteTodoCommand}"
|
332 | 342 | CommandParameter="{Binding ElementName=TodoMarkerGrid, Path=SelectedItem}" />
|
333 |
| - </DataGrid.InputBindings> |
334 |
| - <DataGrid.CellStyle> |
335 |
| - <Style TargetType="{x:Type DataGridCell}"> |
336 |
| - <Setter Property="BorderThickness" Value="0" /> |
337 |
| - <Setter Property="VerticalAlignment" Value="Center" /> |
338 |
| - <Setter Property="Background" Value="Transparent" /> |
339 |
| - </Style> |
340 |
| - </DataGrid.CellStyle> |
341 |
| - <DataGrid.Columns> |
342 |
| - <DataGridTextColumn Header="{Resx ResxName=Rubberduck.UI.RubberduckUI, Key=TodoSettings_TextLabel}" |
| 343 | + </DataGrid.InputBindings> |
| 344 | + <DataGrid.CellStyle> |
| 345 | + <Style TargetType="{x:Type DataGridCell}"> |
| 346 | + <Setter Property="BorderThickness" Value="0" /> |
| 347 | + <Setter Property="VerticalAlignment" Value="Center" /> |
| 348 | + <Setter Property="Background" Value="Transparent" /> |
| 349 | + </Style> |
| 350 | + </DataGrid.CellStyle> |
| 351 | + <DataGrid.Columns> |
| 352 | + <DataGridTextColumn Header="{Resx ResxName=Rubberduck.UI.RubberduckUI, Key=TodoSettings_TextLabel}" |
343 | 353 | Width="*"
|
344 | 354 | Binding="{Binding Text}" />
|
345 |
| - </DataGrid.Columns> |
346 |
| - </DataGrid> |
347 |
| - </StackPanel> |
| 355 | + </DataGrid.Columns> |
| 356 | + </DataGrid> |
348 | 357 | </Grid>
|
349 | 358 | </UserControl>
|
0 commit comments