|
6 | 6 | xmlns:ghfvs="https://github.com/github/VisualStudio" |
7 | 7 | xmlns:local="clr-namespace:GitHub.VisualStudio.Views.GitHubPane" |
8 | 8 | xmlns:prop="clr-namespace:GitHub.VisualStudio.UI;assembly=GitHub.VisualStudio.UI" |
| 9 | + xmlns:imaging="clr-namespace:Microsoft.VisualStudio.Imaging;assembly=Microsoft.VisualStudio.Imaging" |
| 10 | + xmlns:catalog="clr-namespace:Microsoft.VisualStudio.Imaging;assembly=Microsoft.VisualStudio.ImageCatalog" |
9 | 11 | xmlns:markdig="clr-namespace:Markdig.Wpf;assembly=Markdig.Wpf" |
10 | 12 | mc:Ignorable="d" d:DesignHeight="500" d:DesignWidth="300"> |
11 | 13 |
|
|
25 | 27 | </Control.Resources> |
26 | 28 |
|
27 | 29 | <ScrollViewer VerticalScrollBarVisibility="Auto"> |
28 | | - <StackPanel> |
| 30 | + <DockPanel> |
29 | 31 | <StackPanel DockPanel.Dock="Top" Margin="8 0" Orientation="Vertical"> |
30 | 32 | <TextBlock FontSize="16" VerticalAlignment="Center"> |
31 | 33 | <Run FontWeight="SemiBold" Text="{Binding CheckSuiteName, Mode=OneWay}"/> |
|
44 | 46 | TextWrapping="Wrap"/> |
45 | 47 | <Rectangle Fill="{DynamicResource GitHubHeaderSeparatorBrush}" Height="1" Margin="0 4"/> |
46 | 48 |
|
47 | | - <ItemsControl ItemsSource="{Binding AnnotationsDictionary}"> |
| 49 | + <ItemsControl Margin="-4 0" ItemsSource="{Binding AnnotationsDictionary}"> |
48 | 50 | <ItemsControl.ItemTemplate> |
49 | 51 | <DataTemplate> |
50 | 52 | <StackPanel> |
51 | 53 | <Expander> |
52 | 54 | <Expander.Header> |
53 | | - <Label Content="{Binding Key}"></Label> |
| 55 | + <Label Content="{Binding Key}" FontWeight="SemiBold" ToolTip="{Binding Key}" /> |
54 | 56 | </Expander.Header> |
55 | 57 |
|
56 | 58 | <ItemsControl ItemsSource="{Binding Value}"> |
57 | 59 | <ItemsControl.ItemTemplate> |
58 | 60 | <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> |
| 61 | + <Grid Margin="22 0 0 8" > |
| 62 | + <Grid.ColumnDefinitions> |
| 63 | + <ColumnDefinition Width="16" /> |
| 64 | + <ColumnDefinition Width="*" /> |
| 65 | + </Grid.ColumnDefinitions> |
| 66 | + |
| 67 | + <StackPanel Grid.Column="0" VerticalAlignment="Center"> |
| 68 | + <imaging:CrispImage Width="16" Height="16" Moniker="{x:Static catalog:KnownMonikers.StatusInformation}" Visibility="{Binding Annotation.AnnotationLevel, Converter={ghfvs:EqualsToVisibilityConverter Notice}}"/> |
| 69 | + <imaging:CrispImage Width="16" Height="16" Moniker="{x:Static catalog:KnownMonikers.StatusWarning}" Visibility="{Binding Annotation.AnnotationLevel, Converter={ghfvs:EqualsToVisibilityConverter Warning}}"/> |
| 70 | + <imaging:CrispImage Width="16" Height="16" Moniker="{x:Static catalog:KnownMonikers.StatusError}" Visibility="{Binding Annotation.AnnotationLevel, Converter={ghfvs:EqualsToVisibilityConverter Failure}}"/> |
67 | 71 | </StackPanel> |
68 | 72 |
|
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 | + <StackPanel Margin="8,0,0,0" Grid.Column="1"> |
| 74 | + <TextBlock FontFamily="Consolas" Foreground="{DynamicResource VsBrush.GrayText}" Grid.Row="0"> |
| 75 | + <Run Text="Line" /> |
| 76 | + <Run Text="{Binding LineDescription, Mode=OneWay}"/> |
| 77 | + </TextBlock> |
| 78 | + |
| 79 | + <TextBlock FontWeight="SemiBold" Grid.Row="1"> |
| 80 | + <Run Text="{Binding Annotation.Title, Mode=OneWay}"/> |
73 | 81 | </TextBlock> |
74 | | - <markdig:MarkdownViewer Margin="5 0 0 0" Markdown="{Binding Annotation.Message}"/> |
| 82 | + |
| 83 | + <markdig:MarkdownViewer Grid.Column="1" Grid.Row="2" |
| 84 | + FontFamily="Consolas" Markdown="{Binding Annotation.Message}" /> |
75 | 85 | </StackPanel> |
76 | | - </StackPanel> |
| 86 | + </Grid> |
77 | 87 | </DataTemplate> |
78 | 88 | </ItemsControl.ItemTemplate> |
79 | 89 | </ItemsControl> |
80 | 90 | </Expander> |
81 | 91 | </StackPanel> |
82 | | - |
83 | | - <!-- |
84 | | - <ItemsControl ItemsSource="{Binding Value}"> |
85 | | - <ItemsControl.ItemTemplate> |
86 | | - <DataTemplate> |
87 | | - <StackPanel> |
88 | | -
|
89 | | - <Expander Margin="0 0 4 0" Foreground="{DynamicResource GitHubVsToolWindowText}" IsExpanded="{Binding IsExpanded, Mode=OneTime}"> |
90 | | - <Expander.Header> |
91 | | - <StackPanel Orientation="Horizontal"> |
92 | | - <ghfvs:OcticonImage Margin="0 0 0 0" MinWidth="20" Icon="search" Foreground="CornflowerBlue" Visibility="{Binding Annotation.AnnotationLevel, Converter={ghfvs:EqualsToVisibilityConverter Notice}}"/> |
93 | | - <ghfvs:OcticonImage Margin="0 0 0 0" MinWidth="20" Icon="alert" Foreground="#f1c647" Visibility="{Binding Annotation.AnnotationLevel, Converter={ghfvs:EqualsToVisibilityConverter Warning}}"/> |
94 | | - <ghfvs:OcticonImage Margin="0 0 0 0" MinWidth="20" Icon="x" Foreground="#cb2431" Visibility="{Binding Annotation.AnnotationLevel, Converter={ghfvs:EqualsToVisibilityConverter Failure}}"/> |
95 | | - <TextBlock FontWeight="SemiBold" Margin="2 0"> |
96 | | - <Run Text="{Binding Annotation.Title, Mode=OneWay}"/> |
97 | | - </TextBlock> |
98 | | - </StackPanel> |
99 | | - </Expander.Header> |
100 | | - <StackPanel Margin="21 4 0 4"> |
101 | | - <TextBlock Margin="5 4 0 0"> |
102 | | - <Run Text="{Binding Annotation.Path, Mode=OneWay}"/> |
103 | | - <Run FontWeight="SemiBold" Text="{Binding LineDescription, Mode=OneWay}"/> |
104 | | - </TextBlock> |
105 | | - <markdig:MarkdownViewer Margin="5 0 0 0" Markdown="{Binding Annotation.Message}"/> |
106 | | - </StackPanel> |
107 | | - </Expander> |
108 | | - </StackPanel> |
109 | | - </DataTemplate> |
110 | | - </ItemsControl.ItemTemplate> |
111 | | - </ItemsControl> |
112 | | - </StackPanel> |
113 | | - --> |
114 | | - |
115 | 92 | </DataTemplate> |
116 | 93 | </ItemsControl.ItemTemplate> |
117 | 94 | </ItemsControl> |
118 | 95 | </StackPanel> |
119 | | - </StackPanel> |
| 96 | + </DockPanel> |
120 | 97 | </ScrollViewer> |
121 | 98 |
|
122 | 99 | </UserControl> |
|
0 commit comments