|
214 | 214 | </ListBox.ItemContainerStyle> |
215 | 215 | <ListBox.ItemTemplate> |
216 | 216 | <DataTemplate> |
217 | | - <Grid Background="Transparent"> |
| 217 | + <Grid Background="Transparent" Margin="0 2 2 2"> |
218 | 218 |
|
219 | 219 | <Grid.ColumnDefinitions> |
| 220 | + <ColumnDefinition Width="*" /> |
220 | 221 | <ColumnDefinition Width="Auto" /> |
221 | 222 | <ColumnDefinition Width="Auto" /> |
222 | | - <ColumnDefinition Width="Auto" /> |
223 | | - <ColumnDefinition Width="*" /> |
224 | 223 | </Grid.ColumnDefinitions> |
225 | 224 |
|
226 | | - <TextBlock |
| 225 | + <Grid.RowDefinitions> |
| 226 | + <RowDefinition Height="Auto" /> |
| 227 | + <RowDefinition Height="Auto" /> |
| 228 | + </Grid.RowDefinitions> |
| 229 | + |
| 230 | + <TextBlock |
227 | 231 | Grid.Column="0" |
228 | | - Grid.ColumnSpan="4"> |
| 232 | + Grid.Row="0" |
| 233 | + Grid.RowSpan="2" |
| 234 | + Padding="0" |
| 235 | + Margin="3,0,0,0" |
| 236 | + TextWrapping="Wrap" |
| 237 | + MaxWidth="290" |
| 238 | + MaxHeight="40" |
| 239 | + VerticalAlignment="Stretch" |
| 240 | + HorizontalAlignment="Left" |
| 241 | + TextTrimming="WordEllipsis"> |
229 | 242 | <TextBlock.Text> |
230 | | - <MultiBinding StringFormat="{}{0} ({1}/{2})"> |
231 | | - <Binding Path="SourcePatch.Title" /> |
232 | | - <Binding Path="SourcePatch.Repo.Id" /> |
233 | | - <Binding Path="SourcePatch.Id" /> |
234 | | - </MultiBinding> |
| 243 | + <Binding Path="SourcePatch.Title" /> |
235 | 244 | </TextBlock.Text> |
236 | | - </TextBlock> |
| 245 | + </TextBlock> |
237 | 246 |
|
| 247 | + <TextBlock |
| 248 | + Grid.Column="1" |
| 249 | + Grid.ColumnSpan="2" |
| 250 | + Grid.Row="0" |
| 251 | + Padding="0" |
| 252 | + Margin="0" |
| 253 | + VerticalAlignment="Stretch" |
| 254 | + HorizontalAlignment="Right"> |
| 255 | + <TextBlock.Text> |
| 256 | + <Binding Path="SourcePatch.Repo.Id" /> |
| 257 | + </TextBlock.Text> |
| 258 | + </TextBlock> |
| 259 | + <TextBlock |
| 260 | + Grid.Column="1" |
| 261 | + Grid.ColumnSpan="2" |
| 262 | + Grid.Row="1" |
| 263 | + Padding="0" |
| 264 | + Margin="0" |
| 265 | + VerticalAlignment="Stretch" |
| 266 | + HorizontalAlignment="Right" |
| 267 | + TextWrapping="NoWrap" |
| 268 | + TextTrimming="CharacterEllipsis" |
| 269 | + MaxWidth="55"> |
| 270 | + <TextBlock.Text> |
| 271 | + <Binding Path="SourcePatch.Id" /> |
| 272 | + </TextBlock.Text> |
| 273 | + </TextBlock> |
238 | 274 |
|
239 | 275 | <Button Click="SelectedPatchesMoveLeft" |
240 | | - Grid.Column="0" |
| 276 | + Grid.Column="1" |
| 277 | + Grid.Row="0" |
| 278 | + Grid.RowSpan="2" |
241 | 279 | Tag="{Binding}" |
242 | 280 | Margin="0" |
243 | 281 | Style="{StaticResource HoverVisibleButtonStyle}" |
244 | 282 | Content="🡸"> |
245 | 283 | </Button> |
246 | 284 | <Button Click="SelectedPatch_MoveUp" |
247 | | - Grid.Column="1" |
| 285 | + Grid.Column="2" |
| 286 | + Grid.Row="0" |
248 | 287 | Tag="{Binding}" |
249 | | - Margin="5,0" |
| 288 | + Margin="0" |
250 | 289 | Style="{StaticResource HoverVisibleButtonStyle}" |
251 | 290 | Content="🡹"> |
252 | 291 | </Button> |
253 | 292 | <Button Click="SelectedPatch_MoveDown" |
254 | 293 | Grid.Column="2" |
| 294 | + Grid.Row="1" |
255 | 295 | Tag="{Binding}" |
256 | | - Margin="0,0, 5, 0" |
| 296 | + Margin="0" |
257 | 297 | Style="{StaticResource HoverVisibleButtonStyle}" |
258 | 298 | Content="🡻"> |
259 | 299 | </Button> |
|
0 commit comments