Skip to content

Commit

Permalink
Wrap exception message in scrollviewer to support long messages
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasArdal committed Sep 24, 2024
1 parent ee11b2b commit 336be73
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/ExceptionVisualizer/ExceptionUserControl.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,14 @@
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="30"></RowDefinition>
<RowDefinition MaxHeight="400" Height="Auto"></RowDefinition>
<RowDefinition Height="Auto"></RowDefinition>
<RowDefinition Height="80"></RowDefinition>
<RowDefinition Height="*"></RowDefinition>
</Grid.RowDefinitions>
<TextBlock Text="{Binding Type}" FontSize="16" VerticalAlignment="Center" Grid.Row="0" Margin="3"/>
<TextBlock Text="{Binding Message}" VerticalAlignment="Center" Grid.Row="1" Margin="3"/>
<ScrollViewer VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Disabled" Grid.Row="1" Margin="3" MaxHeight="100">
<TextBlock Text="{Binding Message}" TextWrapping="Wrap"/>
</ScrollViewer>
<Grid Grid.Row="2" Margin="3">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="70"></ColumnDefinition>
Expand Down

0 comments on commit 336be73

Please sign in to comment.