2021-04-29 05:05:55 -07:00
|
|
|
<UserControl x:Class="SourceGit.Views.Widgets.Exceptions"
|
|
|
|
x:Name="me"
|
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
2021-07-13 21:43:53 -07:00
|
|
|
xmlns:controls="clr-namespace:SourceGit.Views.Controls"
|
2021-04-29 05:05:55 -07:00
|
|
|
mc:Ignorable="d"
|
|
|
|
Width="Auto" Height="Auto">
|
|
|
|
<ScrollViewer HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Auto">
|
|
|
|
<ItemsControl ItemsSource="{Binding ElementName=me, Path=Messages}">
|
|
|
|
<ItemsControl.ItemTemplate>
|
|
|
|
<DataTemplate>
|
|
|
|
<Grid Height="Auto" Width="300" Margin="8">
|
2021-07-20 01:26:10 -07:00
|
|
|
<Border Background="{DynamicResource Brush.Window}" BorderBrush="{DynamicResource Brush.Border0}" BorderThickness="1">
|
2021-04-29 05:05:55 -07:00
|
|
|
<Border.Effect>
|
|
|
|
<DropShadowEffect ShadowDepth="0" Opacity=".5"/>
|
|
|
|
</Border.Effect>
|
|
|
|
</Border>
|
|
|
|
|
|
|
|
<Grid Margin="8">
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition Height="26"/>
|
|
|
|
<RowDefinition Height="Auto"/>
|
|
|
|
<RowDefinition Height="Auto"/>
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
2021-08-07 06:29:44 -07:00
|
|
|
<TextBlock
|
|
|
|
Grid.Row="0"
|
|
|
|
Text="{DynamicResource Text.Launcher.Error}"
|
|
|
|
FontFamily="Microsoft YaHei UI"
|
|
|
|
FontWeight="Bold"/>
|
2021-07-13 21:43:53 -07:00
|
|
|
<controls:TextEdit
|
|
|
|
Grid.Row="1"
|
|
|
|
Text="{Binding Path=., Mode=OneWay}"
|
|
|
|
IsReadOnly="true"
|
|
|
|
BorderThickness="0"
|
|
|
|
TextWrapping="Wrap"
|
|
|
|
VerticalScrollBarVisibility="Auto"
|
|
|
|
MaxHeight="80"
|
|
|
|
Margin="0,8"
|
2021-08-07 06:29:44 -07:00
|
|
|
FontFamily="Microsoft YaHei UI"
|
2021-07-13 21:43:53 -07:00
|
|
|
VerticalAlignment="Top"/>
|
2021-04-29 05:05:55 -07:00
|
|
|
<Button
|
|
|
|
Grid.Row="2"
|
2021-04-30 00:59:51 -07:00
|
|
|
Height="25"
|
|
|
|
Margin="4,0" Padding="8,0"
|
2021-08-07 06:29:44 -07:00
|
|
|
Click="Dismiss"
|
|
|
|
FontFamily="Microsoft YaHei UI"
|
2021-07-20 01:26:10 -07:00
|
|
|
Content="{DynamicResource Text.Close}"
|
|
|
|
Background="{DynamicResource Brush.Accent1}"
|
|
|
|
BorderBrush="{DynamicResource Brush.FG1}"
|
2021-04-29 05:05:55 -07:00
|
|
|
BorderThickness="1"
|
|
|
|
HorizontalAlignment="Right"/>
|
|
|
|
</Grid>
|
|
|
|
</Grid>
|
|
|
|
</DataTemplate>
|
|
|
|
</ItemsControl.ItemTemplate>
|
|
|
|
</ItemsControl>
|
|
|
|
</ScrollViewer>
|
|
|
|
</UserControl>
|