|
40 | 40 | </DataTrigger> |
41 | 41 | </Style.Triggers> |
42 | 42 | </Style> |
| 43 | + <Style x:Key="TextBlockCommonStyle" TargetType="TextBlock"> |
| 44 | + <Setter Property="TextWrapping" Value="Wrap" /> |
| 45 | + <Setter Property="VerticalAlignment" Value="Stretch" /> |
| 46 | + <Setter Property="HorizontalAlignment" Value="Left" /> |
| 47 | + <Setter Property="TextTrimming" Value="WordEllipsis" /> |
| 48 | + </Style> |
43 | 49 | </UserControl.Resources> |
44 | 50 |
|
45 | 51 |
|
|
147 | 153 |
|
148 | 154 | <TextBlock |
149 | 155 | Grid.Column="0" |
150 | | - Grid.ColumnSpan="2"> |
| 156 | + Margin="0 0 3 0" |
| 157 | + Padding="0" |
| 158 | + Style="{StaticResource TextBlockCommonStyle}" |
| 159 | + Width="55" |
| 160 | + Height="18"> |
151 | 161 | <TextBlock.Text> |
152 | | - <MultiBinding StringFormat="{}{0} ({1})"> |
153 | | - <Binding Path="SourcePatch.Title" /> |
154 | | - <Binding Path="SourcePatch.Id" /> |
155 | | - </MultiBinding> |
| 162 | + <Binding Path="SourcePatch.Id" /> |
156 | 163 | </TextBlock.Text> |
157 | 164 | </TextBlock> |
| 165 | + <Border |
| 166 | + Grid.Column="1" |
| 167 | + Padding="0" |
| 168 | + Margin="0" |
| 169 | + BorderThickness="1,0,0,0" |
| 170 | + BorderBrush="LightGray"> |
| 171 | + <TextBlock |
| 172 | + Margin="3 0 0 0" |
| 173 | + Style="{StaticResource TextBlockCommonStyle}" |
| 174 | + MaxHeight="18"> |
| 175 | + <TextBlock.Text> |
| 176 | + <Binding Path="SourcePatch.Title" /> |
| 177 | + </TextBlock.Text> |
| 178 | + </TextBlock> |
| 179 | + </Border> |
158 | 180 | <!-- In a Grid later defined elements are on the top --> |
159 | 181 | <Button |
160 | 182 | Grid.Column="0" |
|
238 | 260 | <TextBlock |
239 | 261 | Padding="0" |
240 | 262 | Margin="3,0,0,0" |
241 | | - TextWrapping="Wrap" |
242 | 263 | MaxWidth="270" |
243 | 264 | MaxHeight="40" |
244 | | - VerticalAlignment="Stretch" |
245 | | - HorizontalAlignment="Left" |
246 | | - TextTrimming="WordEllipsis"> |
| 265 | + Style="{StaticResource TextBlockCommonStyle}"> |
247 | 266 | <TextBlock.Text> |
248 | 267 | <Binding Path="SourcePatch.Title" /> |
249 | 268 | </TextBlock.Text> |
|
256 | 275 | Grid.Row="0" |
257 | 276 | Padding="0" |
258 | 277 | Margin="2 0 3 0" |
259 | | - VerticalAlignment="Stretch" |
260 | | - HorizontalAlignment="Stretch" |
261 | | - TextWrapping="NoWrap" |
262 | | - TextTrimming="CharacterEllipsis" |
263 | 278 | TextAlignment="Center" |
| 279 | + Style="{StaticResource TextBlockCommonStyle}" |
264 | 280 | Width="55"> |
265 | 281 | <TextBlock.Text> |
266 | 282 | <Binding Path="SourcePatch.Repo.Id" /> |
|
272 | 288 | Grid.Row="1" |
273 | 289 | Padding="0" |
274 | 290 | Margin="2 0 3 0" |
275 | | - VerticalAlignment="Stretch" |
276 | | - HorizontalAlignment="Stretch" |
277 | | - TextWrapping="NoWrap" |
278 | | - TextTrimming="CharacterEllipsis" |
279 | 291 | TextAlignment="Center" |
| 292 | + Style="{StaticResource TextBlockCommonStyle}" |
280 | 293 | Width="55"> |
281 | 294 | <TextBlock.Text> |
282 | 295 | <Binding Path="SourcePatch.Id" /> |
|
0 commit comments