Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve layout of error box #81

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 22 additions & 16 deletions Source/Controls/ErrorBox/ErrorBox.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,24 +13,30 @@
<Border Background="#262626"
BorderThickness="1"
BorderBrush="Black">
<Grid RowDefinitions="*,Auto,Auto">
<TextBlock FontSize="18"
FontWeight="Light"
TextWrapping="Wrap"
HorizontalAlignment="Center"
Grid.Row="0"
Text="{Binding Message}" />

<Expander Header="Stack Trace"
Grid.Row="1">
<TextBox IsReadOnly="True"
BorderThickness="0"
Classes="code_text"
Text="{Binding Exception}"
TextWrapping="NoWrap" />
</Expander>
<Grid RowDefinitions="*,Auto">

<Border Grid.Row="2">
<TabControl Grid.Row="0"
Margin="10,10,10,0">
<TabItem Header="Message">
<TextBlock FontSize="18"
FontWeight="Light"
TextWrapping="Wrap"
HorizontalAlignment="Center"
Text="{Binding Message}" />
</TabItem>
<TabItem Header="Stack Trace">
<TextBox IsReadOnly="True"
BorderThickness="0"
ScrollViewer.HorizontalScrollBarVisibility="Visible"
ScrollViewer.VerticalScrollBarVisibility="Visible"
Classes="code_text"
Text="{Binding Exception, Mode=OneWay}"
TextWrapping="NoWrap" />
</TabItem>
</TabControl>

<Border Grid.Row="1">
<StackPanel Margin="10"
HorizontalAlignment="Right"
Orientation="Horizontal">
Expand Down
Loading