|
42 | 42 | Margin="0" |
43 | 43 | Text="{Binding PullRequestTitle}" |
44 | 44 | TextWrapping="Wrap"/> |
45 | | - <StackPanel Orientation="Horizontal" Margin="0 4"> |
46 | | - </StackPanel> |
| 45 | + <Rectangle Fill="{DynamicResource GitHubHeaderSeparatorBrush}" Height="1" Margin="0 4"/> |
47 | 46 |
|
48 | 47 | <ItemsControl ItemsSource="{Binding AnnotationsDictionary}"> |
49 | 48 | <ItemsControl.ItemTemplate> |
50 | 49 | <DataTemplate> |
51 | 50 | <StackPanel> |
52 | | - <Label Content="{Binding Key}"></Label> |
| 51 | + <Expander> |
| 52 | + <Expander.Header> |
| 53 | + <Label Content="{Binding Key}"></Label> |
| 54 | + </Expander.Header> |
53 | 55 |
|
| 56 | + <ItemsControl ItemsSource="{Binding Value}"> |
| 57 | + <ItemsControl.ItemTemplate> |
| 58 | + <DataTemplate> |
| 59 | + <StackPanel Margin="22 0 0 0"> |
| 60 | + <StackPanel Orientation="Horizontal"> |
| 61 | + <ghfvs:OcticonImage Margin="0 0 0 0" MinWidth="20" Icon="search" Foreground="CornflowerBlue" Visibility="{Binding Annotation.AnnotationLevel, Converter={ghfvs:EqualsToVisibilityConverter Notice}}"/> |
| 62 | + <ghfvs:OcticonImage Margin="0 0 0 0" MinWidth="20" Icon="alert" Foreground="#f1c647" Visibility="{Binding Annotation.AnnotationLevel, Converter={ghfvs:EqualsToVisibilityConverter Warning}}"/> |
| 63 | + <ghfvs:OcticonImage Margin="0 0 0 0" MinWidth="20" Icon="x" Foreground="#cb2431" Visibility="{Binding Annotation.AnnotationLevel, Converter={ghfvs:EqualsToVisibilityConverter Failure}}"/> |
| 64 | + <TextBlock FontWeight="SemiBold" Margin="2 0"> |
| 65 | + <Run Text="{Binding Annotation.Title, Mode=OneWay}"/> |
| 66 | + </TextBlock> |
| 67 | + </StackPanel> |
| 68 | + |
| 69 | + <StackPanel Margin="21 4 0 4"> |
| 70 | + <TextBlock Margin="5 4 0 0"> |
| 71 | + <Run Text="{Binding Annotation.Path, Mode=OneWay}"/> |
| 72 | + <Run FontWeight="SemiBold" Text="{Binding LineDescription, Mode=OneWay}"/> |
| 73 | + </TextBlock> |
| 74 | + <markdig:MarkdownViewer Margin="5 0 0 0" Markdown="{Binding Annotation.Message}"/> |
| 75 | + </StackPanel> |
| 76 | + </StackPanel> |
| 77 | + </DataTemplate> |
| 78 | + </ItemsControl.ItemTemplate> |
| 79 | + </ItemsControl> |
| 80 | + </Expander> |
| 81 | + </StackPanel> |
| 82 | + |
| 83 | + <!-- |
54 | 84 | <ItemsControl ItemsSource="{Binding Value}"> |
55 | 85 | <ItemsControl.ItemTemplate> |
56 | 86 | <DataTemplate> |
57 | 87 | <StackPanel> |
58 | | - <Rectangle Fill="{DynamicResource GitHubHeaderSeparatorBrush}" Height="1" Margin="0 4"/> |
59 | 88 |
|
60 | 89 | <Expander Margin="0 0 4 0" Foreground="{DynamicResource GitHubVsToolWindowText}" IsExpanded="{Binding IsExpanded, Mode=OneTime}"> |
61 | 90 | <Expander.Header> |
|
81 | 110 | </ItemsControl.ItemTemplate> |
82 | 111 | </ItemsControl> |
83 | 112 | </StackPanel> |
| 113 | + --> |
84 | 114 |
|
85 | 115 | </DataTemplate> |
86 | 116 | </ItemsControl.ItemTemplate> |
|
0 commit comments