|
@@ -8,10 +8,10 @@
|
|
|
d:DataContext="{d:DesignInstance vm:CrashReportViewModel}"
|
|
|
mc:Ignorable="d"
|
|
|
Background="{StaticResource AccentColor}" Foreground="White"
|
|
|
- Title="Oh no!" WindowStyle="None"
|
|
|
+ Title="PixiEditor has crashed!" WindowStyle="None"
|
|
|
MinWidth="450" MinHeight="195"
|
|
|
- Width="450" Height="195">
|
|
|
-
|
|
|
+ Width="480" Height="180">
|
|
|
+
|
|
|
<WindowChrome.WindowChrome>
|
|
|
<WindowChrome CaptionHeight="35" GlassFrameThickness="0.1"
|
|
|
ResizeBorderThickness="{x:Static SystemParameters.WindowResizeBorderThickness}"/>
|
|
@@ -22,25 +22,34 @@
|
|
|
Executed="CommandBinding_Executed_Close" />
|
|
|
</Window.CommandBindings>
|
|
|
|
|
|
- <StackPanel>
|
|
|
- <dial:DialogTitleBar TitleText="Oh no!" CloseCommand="{x:Static SystemCommands.CloseWindowCommand}" />
|
|
|
- <StackPanel Grid.Row="1" Margin="5" VerticalAlignment="Center">
|
|
|
- <TextBlock>PixiEditor has crashed!</TextBlock>
|
|
|
- <TextBlock Text="{Binding DocumentCount, StringFormat={}{0} file(s) can be recovered}"
|
|
|
+ <Grid>
|
|
|
+ <Grid.RowDefinitions>
|
|
|
+ <RowDefinition Height="Auto"/>
|
|
|
+ <RowDefinition/>
|
|
|
+ </Grid.RowDefinitions>
|
|
|
+ <dial:DialogTitleBar TitleText="PixiEditor has crashed!" CloseCommand="{x:Static SystemCommands.CloseWindowCommand}" />
|
|
|
+ <Grid Grid.Row="1" Margin="30,30,30,0" >
|
|
|
+ <StackPanel>
|
|
|
+ <Grid Background="{StaticResource MainColor}">
|
|
|
+ <StackPanel Margin="7" VerticalAlignment="Center">
|
|
|
+ <TextBlock Text="{Binding DocumentCount, StringFormat={}{0} file(s) can be recovered}"
|
|
|
d:Text="2 file(s) can be recovered"/>
|
|
|
- <TextBlock TextWrapping="Wrap">You can help the developers fixing this bug by sending a crash report that was generated</TextBlock>
|
|
|
+ <TextBlock TextWrapping="Wrap">You can help the developers fixing this bug by sending a crash report that was generated</TextBlock>
|
|
|
+ </StackPanel>
|
|
|
+ </Grid>
|
|
|
|
|
|
- <StackPanel Margin="0,20,0,5" Orientation="Horizontal" HorizontalAlignment="Center">
|
|
|
- <Button Margin="0,0,5,0" Command="{Binding OpenSendCrashReportCommand}"
|
|
|
+ <WrapPanel Margin="0,20,0,5" Orientation="Horizontal" HorizontalAlignment="Center">
|
|
|
+ <Button Command="{Binding OpenSendCrashReportCommand}"
|
|
|
Width="120"
|
|
|
Style="{StaticResource DarkRoundButton}">Send report</Button>
|
|
|
- <Button Grid.Column="1" Margin="5,0,0,0" Width="120"
|
|
|
+ <Button Margin="5,0,5,0" Width="120"
|
|
|
Command="{Binding RecoverDocumentsCommand}"
|
|
|
Style="{StaticResource DarkRoundButton}">Recover files</Button>
|
|
|
- </StackPanel>
|
|
|
- <Button Visibility="{Binding IsDebugBuild, Converter={BoolToVisibilityConverter}}"
|
|
|
- Style="{StaticResource DarkRoundButton}" Width="250"
|
|
|
+ <Button Visibility="{Binding IsDebugBuild, Converter={BoolToVisibilityConverter}}"
|
|
|
+ Style="{StaticResource DarkRoundButton}" Width="170"
|
|
|
Command="{Binding AttachDebuggerCommand}">(Re)Attach debugger</Button>
|
|
|
- </StackPanel>
|
|
|
- </StackPanel>
|
|
|
+ </WrapPanel>
|
|
|
+ </StackPanel>
|
|
|
+ </Grid>
|
|
|
+ </Grid>
|
|
|
</Window>
|