launch error display
This commit is contained in:
37
Views/ErrorDialog.axaml
Normal file
37
Views/ErrorDialog.axaml
Normal file
@@ -0,0 +1,37 @@
|
||||
<Window xmlns="https://github.com/avaloniaui"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
x:Class="UnifiedFarmLauncher.Views.ErrorDialog"
|
||||
Title="Error"
|
||||
Width="700"
|
||||
Height="500"
|
||||
MinWidth="500"
|
||||
MinHeight="300"
|
||||
WindowStartupLocation="CenterOwner">
|
||||
<Grid RowDefinitions="Auto,*,Auto" Margin="15">
|
||||
<!-- Header with icon and title -->
|
||||
<StackPanel Orientation="Horizontal" Grid.Row="0" Margin="0,0,0,15">
|
||||
<TextBlock Text="❌" FontSize="24" VerticalAlignment="Center" Margin="0,0,10,0"/>
|
||||
<TextBlock Text="Error" FontSize="18" FontWeight="Bold" VerticalAlignment="Center"/>
|
||||
</StackPanel>
|
||||
|
||||
<!-- Scrollable error content -->
|
||||
<ScrollViewer Grid.Row="1"
|
||||
VerticalScrollBarVisibility="Auto"
|
||||
HorizontalScrollBarVisibility="Disabled">
|
||||
<Border>
|
||||
<TextBlock x:Name="ErrorTextBlock"
|
||||
TextWrapping="Wrap"
|
||||
FontFamily="Consolas, Courier New, monospace"
|
||||
FontSize="12"/>
|
||||
</Border>
|
||||
</ScrollViewer>
|
||||
|
||||
<!-- OK Button -->
|
||||
<Button Grid.Row="2"
|
||||
Content="OK"
|
||||
HorizontalAlignment="Right"
|
||||
Width="80"
|
||||
Margin="0,15,0,0"
|
||||
Click="OkButton_Click"/>
|
||||
</Grid>
|
||||
</Window>
|
||||
Reference in New Issue
Block a user