Show row details
This commit is contained in:
@@ -99,7 +99,7 @@ class MainViewModel : BaseViewModel, IFontResolver
|
|||||||
{
|
{
|
||||||
Title = Path.GetFileName(filePath),
|
Title = Path.GetFileName(filePath),
|
||||||
Date = DateOnly.FromDateTime(File.GetCreationTime(filePath)),
|
Date = DateOnly.FromDateTime(File.GetCreationTime(filePath)),
|
||||||
Notes = "",
|
Notes = "TEST NOTES",
|
||||||
FilePath = filePath,
|
FilePath = filePath,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,7 +27,7 @@
|
|||||||
Grid.Column="0"
|
Grid.Column="0"
|
||||||
Grid.ColumnSpan="2"
|
Grid.ColumnSpan="2"
|
||||||
Margin="2"
|
Margin="2"
|
||||||
ItemsSource="{Binding ReportFiles, Mode=TwoWay}"
|
ItemsSource="{Binding ReportFiles}"
|
||||||
AutoGenerateColumns="False"
|
AutoGenerateColumns="False"
|
||||||
IsReadOnly="False"
|
IsReadOnly="False"
|
||||||
GridLinesVisibility="All"
|
GridLinesVisibility="All"
|
||||||
@@ -92,6 +92,13 @@
|
|||||||
</DataGridTemplateColumn.CellTemplate>
|
</DataGridTemplateColumn.CellTemplate>
|
||||||
</DataGridTemplateColumn>
|
</DataGridTemplateColumn>
|
||||||
</DataGrid.Columns>
|
</DataGrid.Columns>
|
||||||
|
<DataGrid.RowDetailsTemplate>
|
||||||
|
<DataTemplate x:DataType="models:ReportFile">
|
||||||
|
<TextBlock TextWrapping="Wrap" Margin="4,4,4,0">
|
||||||
|
<Run FontWeight="Bold" Text="Notes"/>: <Run Text="{Binding Notes}"/>
|
||||||
|
</TextBlock>
|
||||||
|
</DataTemplate>
|
||||||
|
</DataGrid.RowDetailsTemplate>
|
||||||
</DataGrid>
|
</DataGrid>
|
||||||
<StackPanel Orientation="Vertical"
|
<StackPanel Orientation="Vertical"
|
||||||
HorizontalAlignment="Center"
|
HorizontalAlignment="Center"
|
||||||
|
|||||||
Reference in New Issue
Block a user