| 1 | <Window x:Class="TaiBug.MainWindow" |
| 2 | xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
| 3 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
| 4 | xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
| 5 | xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
| 6 | xmlns:local="clr-namespace:TaiBug" |
| 7 | mc:Ignorable="d" |
| 8 | Title="Tai 程序崩溃" Height="372" Width="390" ResizeMode="NoResize" WindowStartupLocation="CenterScreen"> |
| 9 | <Grid Margin="10"> |
| 10 | <Grid.Triggers> |
| 11 | <EventTrigger RoutedEvent="Loaded"> |
| 12 | <BeginStoryboard> |
| 13 | <Storyboard AutoReverse="True" RepeatBehavior="Forever"> |
| 14 | <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.RenderTransform). |
| 15 | (TranslateTransform.Y)" |
| 16 | Storyboard.TargetName="IconGray"> |
| 17 | <EasingDoubleKeyFrame KeyTime="00:00:4.0" |
| 18 | Value="20" /> |
| 19 | </DoubleAnimationUsingKeyFrames> |
| 20 | </Storyboard> |
| 21 | </BeginStoryboard> |
| 22 | </EventTrigger> |
| 23 | </Grid.Triggers> |
| 24 | <StackPanel> |
| 25 | |
| 26 | <Image x:Name="IconGray" Width="120" |
| 27 | HorizontalAlignment="Center" VerticalAlignment="Top" Source="/ghost_gray (320).ico" > |
| 28 | <Image.Effect> |
| 29 | <DropShadowEffect BlurRadius="10" Direction="0" ShadowDepth="0" Color="Black" Opacity="0.1"/> |
| 30 | </Image.Effect> |
| 31 | <Image.RenderTransform> |
| 32 | <TranslateTransform Y="0"/> |
| 33 | </Image.RenderTransform> |
| 34 | |
| 35 | </Image> |
| 36 | <Border Background="#f3f3f3" CornerRadius="6" Padding="10" Margin="0,-50,0,20"> |
| 37 | <Border.Effect> |
| 38 | <DropShadowEffect BlurRadius="0" Direction="40" ShadowDepth="4" Color="#FFF7F7F7" Opacity="1"/> |
| 39 | </Border.Effect> |
| 40 | |
| 41 | <StackPanel> |
| 42 | <TextBlock Foreground="Gray" Text="Tai 发生了一个预料之外的错误!" FontSize="14" FontWeight="Bold" HorizontalAlignment="Center" Margin="0,0,0,0"/> |
| 43 | <TextBlock Foreground="Gray" TextWrapping="WrapWithOverflow" FontSize="14" HorizontalAlignment="Center" Margin="0,10,0,0"> |
| 44 | <Run Text="对此非常抱歉!本次崩溃的"/><Hyperlink ToolTip="在资源文件管理器中定位到该日志文件" Click="LogHyperlinkClick">日志</Hyperlink><Run Text="已经保存,如果方便请将它提交给开发者处理,非常谢谢。"/> |
| 45 | </TextBlock> |
| 46 | <TextBlock Foreground="Gray" Text="如何给开发者提交日志?" FontSize="14" FontWeight="Bold" HorizontalAlignment="Left" Margin="0,10,0,0"/> |
| 47 | |
| 48 | <TextBlock Foreground="Gray" TextWrapping="WrapWithOverflow" FontSize="14" HorizontalAlignment="Left" Margin="0,5,0,0"> |
| 49 | <Run Text="1. 通过"/> <Hyperlink ToolTip="浏览器打开" Click="IssuesHyperlinkClick">Github Issues</Hyperlink> |
| 50 | </TextBlock> |
| 51 | <TextBlock Foreground="Gray" TextWrapping="WrapWithOverflow" FontSize="14" HorizontalAlignment="Left" Margin="0,5,0,0"> |
| 52 | <Run Text="2. 通过电子邮件"/> <Hyperlink ToolTip="点击复制开发者邮箱地址" Click="EmailHyperlinkClick">[email protected]</Hyperlink> |
| 53 | </TextBlock> |
| 54 | </StackPanel> |
| 55 | </Border> |
| 56 | |
| 57 | </StackPanel> |
| 58 | |
| 59 | <StackPanel Orientation="Horizontal" VerticalAlignment="Bottom" HorizontalAlignment="Left"> |
| 60 | <Button Click="Restart"> |
| 61 | <Button.Template> |
| 62 | <ControlTemplate> |
| 63 | <Border Background="#2b20d9" Padding="10,10" CornerRadius="4"> |
| 64 | <TextBlock Text="重新启动 Tai" Foreground="White"/> |
| 65 | </Border> |
| 66 | </ControlTemplate> |
| 67 | </Button.Template> |
| 68 | </Button> |
| 69 | </StackPanel> |
| 70 | </Grid> |
| 71 | |
| 72 | </Window> |