|
126 | 126 | <ItemsControl Name="timeline" ItemsSource="{Binding Timeline}"> |
127 | 127 | <ItemsControl.Resources> |
128 | 128 | <DataTemplate DataType="{x:Type ghfvs:CommentViewModel}"> |
129 | | - <v:CommentView/> |
| 129 | + <Grid Margin="0 16"> |
| 130 | + <Grid.ColumnDefinitions> |
| 131 | + <ColumnDefinition Width="40" /> |
| 132 | + <ColumnDefinition Width="*" /> |
| 133 | + </Grid.ColumnDefinitions> |
| 134 | + |
| 135 | + <v:ActorAvatarView Width="35" |
| 136 | + Height="35" |
| 137 | + VerticalAlignment="Top" |
| 138 | + Margin="0 0 5 0" |
| 139 | + ViewModel="{Binding Author}" /> |
| 140 | + |
| 141 | + <Border BorderBrush="{DynamicResource GitHubHeaderSeparatorBrush}" BorderThickness="1" |
| 142 | + Grid.Column="1" VerticalAlignment="Top"> |
| 143 | + <StackPanel Orientation="Vertical"> |
| 144 | + <Border Padding="6" Background="{DynamicResource GitHubBranchNameBackgroundBrush}" BorderBrush="{DynamicResource GitHubHeaderSeparatorBrush}" BorderThickness="0 0 0 1"> |
| 145 | + <StackPanel Orientation="Horizontal" DockPanel.Dock="Left" > |
| 146 | + <TextBlock Foreground="{DynamicResource GitHubVsToolWindowText}" Margin="4"> |
| 147 | + <Run FontWeight="Bold" Text="{Binding Author.Login}" /> |
| 148 | + <Run Text="commented" /> |
| 149 | + </TextBlock> |
| 150 | + |
| 151 | + <ui:GitHubActionLink Content="{Binding CreatedAt, Converter={ui:DurationToStringConverter}}" |
| 152 | + Command="{Binding OpenOnGitHub}" |
| 153 | + Foreground="{DynamicResource GitHubVsToolWindowText}" |
| 154 | + VerticalAlignment="Center" |
| 155 | + Opacity="0.75" /> |
| 156 | + <Border Background="{DynamicResource VsBrush.InfoBackground}" |
| 157 | + BorderBrush="{DynamicResource VsBrush.AccentPale}" |
| 158 | + BorderThickness="1" |
| 159 | + CornerRadius="3" |
| 160 | + Padding="2 1" |
| 161 | + VerticalAlignment="Center" |
| 162 | + Visibility="{Binding IsPending, Converter={ui:BooleanToVisibilityConverter}, FallbackValue=Collapsed}"> |
| 163 | + <TextBlock FontSize="10" Text="{x:Static ghfvs:Resources.Pending}" /> |
| 164 | + </Border> |
| 165 | + </StackPanel> |
| 166 | + </Border> |
| 167 | + |
| 168 | + <markdig:MarkdownViewer Name="bodyMarkdown" Margin="8" Foreground="{DynamicResource VsBrush.WindowText}" Markdown="{Binding Body}"/> |
| 169 | + </StackPanel> |
| 170 | + </Border> |
| 171 | + </Grid> |
| 172 | + |
130 | 173 | </DataTemplate> |
131 | 174 |
|
132 | 175 | <DataTemplate DataType="{x:Type ghfvs:CommentViewModelDesigner}"> |
|
0 commit comments