|
18 | 18 | <Grid> |
19 | 19 | <Grid.RowDefinitions> |
20 | 20 | <RowDefinition Height="Auto" /> |
21 | | - <RowDefinition Height="*" /> |
| 21 | + <RowDefinition Height="Auto" /> |
22 | 22 | </Grid.RowDefinitions> |
23 | 23 | <Grid.ColumnDefinitions> |
24 | 24 | <ColumnDefinition Width="Auto" /> |
|
27 | 27 | <ColumnDefinition Width="12" /> |
28 | 28 | <ColumnDefinition Width="11" /> |
29 | 29 | </Grid.ColumnDefinitions> |
30 | | - <Image x:Name="avatar" |
31 | | - Grid.Row="0" |
32 | | - Grid.RowSpan="2" |
33 | | - Grid.Column="0" |
34 | | - Width="32" |
35 | | - Height="32" |
36 | | - Margin="0,0,9,0" |
37 | | - RenderOptions.BitmapScalingMode="HighQuality" |
38 | | - Source="{Binding Author.Avatar}" /> |
| 30 | + |
| 31 | + <Grid |
| 32 | + Grid.Row="0" |
| 33 | + Grid.RowSpan="2" |
| 34 | + Grid.Column="0" |
| 35 | + VerticalAlignment="Top"> |
| 36 | + |
| 37 | + <Border Name="avatarMask" Background="White" CornerRadius="3" Width="20" /> |
| 38 | + |
| 39 | + <StackPanel> |
| 40 | + <StackPanel.OpacityMask> |
| 41 | + <VisualBrush Visual="{Binding ElementName=avatarMask}" /> |
| 42 | + </StackPanel.OpacityMask> |
| 43 | + <Image x:Name="avatar" |
| 44 | + Width="30" |
| 45 | + Margin="0,0,10,0" |
| 46 | + Height="30" |
| 47 | + RenderOptions.BitmapScalingMode="HighQuality" |
| 48 | + Source="{Binding Author.Avatar}" /> |
| 49 | + </StackPanel> |
| 50 | + </Grid> |
| 51 | + |
39 | 52 | <TextBlock x:Name="title" |
40 | 53 | Grid.Row="0" |
41 | 54 | Grid.Column="1" |
42 | 55 | HorizontalAlignment="Left" |
43 | | - VerticalAlignment="Center" |
| 56 | + VerticalAlignment="Top" |
44 | 57 | FontFamily="Segoe UI" |
45 | 58 | FontSize="14" |
46 | 59 | Foreground="{DynamicResource GitHubVsToolWindowText}" |
| 60 | + Margin="0,-3,5,0" |
47 | 61 | Text="{Binding Title}" |
48 | | - TextWrapping="WrapWithOverflow" /> |
49 | | - <ui:OcticonImage x:Name="comment_icon" |
50 | | - Grid.Row="0" |
51 | | - Grid.Column="2" |
52 | | - Width="14" |
53 | | - Height="14" |
54 | | - Margin="0,0,1,0" |
55 | | - HorizontalAlignment="Right" |
56 | | - VerticalAlignment="Center" |
57 | | - Foreground="{DynamicResource GitHubVsToolWindowText}" |
58 | | - Icon="comment"> |
59 | | - <ui:OcticonImage.Style> |
60 | | - <Style> |
61 | | - <Style.Triggers> |
62 | | - <DataTrigger Binding="{Binding CommentCount}" Value="0"> |
63 | | - <Setter Property="FrameworkElement.IsEnabled" Value="False" /> |
64 | | - </DataTrigger> |
65 | | - </Style.Triggers> |
66 | | - </Style> |
67 | | - </ui:OcticonImage.Style> |
| 62 | + ToolTip="{Binding Title}" |
| 63 | + TextTrimming="CharacterEllipsis" /> |
| 64 | + <ui:OcticonImage x:Name="comment_icon" |
| 65 | + Grid.Row="0" |
| 66 | + Grid.RowSpan="2" |
| 67 | + Grid.Column="2" |
| 68 | + Icon="comment" |
| 69 | + Margin="5,0" |
| 70 | + Width="16" |
| 71 | + Height="16" |
| 72 | + VerticalAlignment="Top" |
| 73 | + Foreground="{DynamicResource GitHubVsToolWindowText}"> |
| 74 | + <!-- |
| 75 | + <ui:OcticonImage.Style> |
| 76 | + <Style> |
| 77 | + <Style.Triggers> |
| 78 | + <DataTrigger Binding="{Binding CommentCount}" Value="0"> |
| 79 | + <Setter Property="FrameworkElement.IsEnabled" Value="False" /> |
| 80 | + </DataTrigger> |
| 81 | + </Style.Triggers> |
| 82 | + </Style> |
| 83 | + </ui:OcticonImage.Style> |
| 84 | + --> |
| 85 | + </ui:OcticonImage> |
68 | 86 |
|
69 | | - </ui:OcticonImage> |
70 | 87 | <TextBlock x:Name="comment_count" |
71 | 88 | Grid.Row="0" |
| 89 | + Grid.RowSpan="2" |
72 | 90 | Grid.Column="3" |
73 | 91 | HorizontalAlignment="Left" |
74 | | - VerticalAlignment="Center" |
| 92 | + VerticalAlignment="Top" |
75 | 93 | FontFamily="Segoe UI" |
76 | 94 | FontSize="12" |
77 | 95 | Foreground="{DynamicResource GitHubVsToolWindowText}" |
|
85 | 103 | </Style.Triggers> |
86 | 104 | </Style> |
87 | 105 | </TextBlock.Style> |
88 | | - |
89 | 106 | </TextBlock> |
| 107 | + |
90 | 108 | <ui:OcticonImage x:Name="comment_new" |
91 | 109 | Grid.Row="0" |
| 110 | + Grid.RowSpan="2" |
92 | 111 | Grid.Column="4" |
93 | 112 | Width="10" |
94 | 113 | Height="10" |
95 | 114 | HorizontalAlignment="Right" |
96 | | - VerticalAlignment="Center" |
| 115 | + VerticalAlignment="Top" |
| 116 | + Margin="0,3" |
97 | 117 | Foreground="Green" |
98 | 118 | Icon="primitive_dot" |
99 | 119 | Visibility="{Binding HasNewComments, |
|
113 | 133 | CommandParameter="{Binding Number}" |
114 | 134 | Content="{Binding Number}" |
115 | 135 | FontFamily="Segoe UI" |
116 | | - FontSize="11" |
| 136 | + FontSize="12" |
117 | 137 | Style="{StaticResource HashtagActionLink}" /> |
118 | 138 | <TextBlock x:Name="description" |
119 | 139 | Grid.Column="1" |
120 | 140 | FontFamily="Segoe UI" |
121 | | - FontSize="11" |
| 141 | + FontSize="12" |
| 142 | + Margin="0,0,10,0" |
| 143 | + TextTrimming="CharacterEllipsis" |
122 | 144 | Foreground="{DynamicResource GitHubVsGrayText}"> |
123 | 145 | <TextBlock.Text> |
124 | | - <MultiBinding StringFormat="{} {0} {1} {2} {3}"> |
125 | | - <Binding Source="{x:Static i18n:Resources.prOpenedText}" /> |
| 146 | + <MultiBinding StringFormat="{} {0} {1} {2}"> |
126 | 147 | <Binding Converter="{StaticResource DurationToStringConverter}" Path="UpdatedAt" /> |
127 | 148 | <Binding Source="{x:Static i18n:Resources.prOpenedByText}" /> |
128 | 149 | <Binding Path="Author.Login" /> |
129 | 150 | </MultiBinding> |
130 | 151 | </TextBlock.Text> |
| 152 | + |
| 153 | + <TextBlock.ToolTip> |
| 154 | + <ToolTip> |
| 155 | + <TextBlock> |
| 156 | + <TextBlock.Text> |
| 157 | + <MultiBinding StringFormat="{} {0} {1} {2} {3}"> |
| 158 | + <Binding Source="{x:Static i18n:Resources.prOpenedText}" /> |
| 159 | + <Binding Converter="{StaticResource DurationToStringConverter}" Path="UpdatedAt" /> |
| 160 | + <Binding Source="{x:Static i18n:Resources.prOpenedByText}" /> |
| 161 | + <Binding Path="Author.Login" /> |
| 162 | + </MultiBinding> |
| 163 | + </TextBlock.Text> |
| 164 | + </TextBlock> |
| 165 | + </ToolTip> |
| 166 | + </TextBlock.ToolTip> |
131 | 167 | </TextBlock> |
132 | 168 | </Grid> |
133 | 169 | </Grid> |
|
0 commit comments