Fix word wrapping in DataGrid details
This commit is contained in:
+12
-7
@@ -186,11 +186,18 @@
|
|||||||
</DataGrid.Columns>
|
</DataGrid.Columns>
|
||||||
<DataGrid.RowDetailsTemplate>
|
<DataGrid.RowDetailsTemplate>
|
||||||
<DataTemplate x:DataType="models:ReportFile">
|
<DataTemplate x:DataType="models:ReportFile">
|
||||||
<TextBlock TextWrapping="Wrap" Margin="4,4,4,0">
|
<Grid ColumnDefinitions="*"
|
||||||
<Run FontWeight="Bold" Text="File Path"/>: <Run Text="{Binding FilePath}"/>
|
RowDefinitions="Auto, Auto, Auto">
|
||||||
<LineBreak/>
|
<TextBlock TextWrapping="Wrap" Margin="4" Grid.Row="0">
|
||||||
|
<Run FontWeight="Bold" Text="File Path"/>: <Run Text="{Binding FilePath}"/>
|
||||||
|
</TextBlock>
|
||||||
|
<TextBlock TextWrapping="Wrap" Margin="4" Grid.Row="1">
|
||||||
|
<Run FontWeight="Bold" Text="Notes"/>: <Run Text="{Binding Notes}"/>
|
||||||
|
</TextBlock>
|
||||||
<StackPanel Orientation="Horizontal"
|
<StackPanel Orientation="Horizontal"
|
||||||
Spacing="8">
|
Spacing="8"
|
||||||
|
Margin="4"
|
||||||
|
Grid.Row="2">
|
||||||
<Button Command="{Binding $parent[DataGrid].((vm:MainViewModel)DataContext).OpenFileLocation}"
|
<Button Command="{Binding $parent[DataGrid].((vm:MainViewModel)DataContext).OpenFileLocation}"
|
||||||
CommandParameter="{Binding}">
|
CommandParameter="{Binding}">
|
||||||
<Button.Content>
|
<Button.Content>
|
||||||
@@ -204,9 +211,7 @@
|
|||||||
</Button.Content>
|
</Button.Content>
|
||||||
</Button>
|
</Button>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
<LineBreak/>
|
</Grid>
|
||||||
<Run FontWeight="Bold" Text="Notes"/>: <Run Text="{Binding Notes}"/>
|
|
||||||
</TextBlock>
|
|
||||||
</DataTemplate>
|
</DataTemplate>
|
||||||
</DataGrid.RowDetailsTemplate>
|
</DataGrid.RowDetailsTemplate>
|
||||||
</DataGrid>
|
</DataGrid>
|
||||||
|
|||||||
Reference in New Issue
Block a user