|
16 | 16 |
|
17 | 17 | <Grid |
18 | 18 | Width="240" |
19 | | - Padding="12" |
20 | 19 | AllowDrop="True" |
21 | 20 | Background="{ThemeResource App.Theme.InfoPane.BackgroundBrush}" |
22 | 21 | BackgroundSizing="InnerBorderEdge" |
23 | 22 | BorderBrush="{ThemeResource CardStrokeColorDefaultBrush}" |
24 | 23 | BorderThickness="1" |
25 | 24 | CornerRadius="8" |
26 | 25 | DragOver="Shelf_DragOver" |
27 | | - Drop="Shelf_Drop" |
28 | | - RowSpacing="8"> |
| 26 | + Drop="Shelf_Drop"> |
29 | 27 |
|
30 | 28 | <Grid.RowDefinitions> |
31 | 29 | <RowDefinition Height="Auto" /> |
32 | 30 | <RowDefinition Height="*" /> |
33 | 31 | <RowDefinition Height="Auto" /> |
34 | 32 | </Grid.RowDefinitions> |
35 | 33 |
|
36 | | - <StackPanel Grid.Row="0" Spacing="8"> |
| 34 | + <StackPanel |
| 35 | + Grid.Row="0" |
| 36 | + Padding="12,12,12,4" |
| 37 | + Spacing="8"> |
37 | 38 |
|
38 | 39 | <!-- Title --> |
39 | 40 | <TextBlock |
|
50 | 51 | <!-- Items List --> |
51 | 52 | <ListView |
52 | 53 | Grid.Row="1" |
| 54 | + Padding="8,4,8,4" |
53 | 55 | DragItemsStarting="ListView_DragItemsStarting" |
| 56 | + ItemContainerTransitions="{x:Null}" |
54 | 57 | ItemsSource="{x:Bind ItemsSource, Mode=OneWay}" |
55 | 58 | ScrollViewer.VerticalScrollBarVisibility="Auto" |
56 | 59 | ScrollViewer.VerticalScrollMode="Auto" |
57 | 60 | SelectionMode="Extended"> |
58 | 61 | <ListView.ItemTemplate> |
59 | 62 | <DataTemplate x:DataType="data:ShelfItem"> |
60 | | - <StackPanel Orientation="Horizontal" Spacing="8"> |
| 63 | + <Grid ColumnSpacing="8"> |
| 64 | + <Grid.ColumnDefinitions> |
| 65 | + <ColumnDefinition Width="Auto" /> |
| 66 | + <ColumnDefinition Width="*" /> |
| 67 | + </Grid.ColumnDefinitions> |
61 | 68 | <Image |
| 69 | + Grid.Column="0" |
62 | 70 | Width="16" |
63 | 71 | Height="16" |
64 | 72 | Source="{x:Bind Icon, Mode=OneWay, Converter={StaticResource ImageModelToImageConverter}}" /> |
65 | | - <TextBlock Text="{x:Bind Name, Mode=OneWay}" /> |
| 73 | + <TextBlock |
| 74 | + Grid.Column="1" |
| 75 | + Text="{x:Bind Name, Mode=OneWay}" |
| 76 | + TextTrimming="CharacterEllipsis" |
| 77 | + TextWrapping="NoWrap" |
| 78 | + ToolTipService.ToolTip="{x:Bind Path, Mode=OneWay}" /> |
66 | 79 |
|
67 | | - <StackPanel.ContextFlyout> |
| 80 | + <Grid.ContextFlyout> |
68 | 81 | <MenuFlyout> |
69 | 82 | <MenuFlyoutItem Command="{x:Bind RemoveCommand}" Text="{helpers:ResourceString Name=RemoveFromShelf}"> |
70 | 83 | <MenuFlyoutItem.Icon> |
71 | 84 | <FontIcon Glyph="" /> |
72 | 85 | </MenuFlyoutItem.Icon> |
73 | 86 | </MenuFlyoutItem> |
74 | 87 | </MenuFlyout> |
75 | | - </StackPanel.ContextFlyout> |
76 | | - </StackPanel> |
| 88 | + </Grid.ContextFlyout> |
| 89 | + </Grid> |
77 | 90 | </DataTemplate> |
78 | 91 | </ListView.ItemTemplate> |
79 | 92 |
|
|
86 | 99 | </ListView> |
87 | 100 |
|
88 | 101 |
|
89 | | - <StackPanel Grid.Row="2" Spacing="4"> |
| 102 | + <StackPanel |
| 103 | + Grid.Row="2" |
| 104 | + Padding="12,12,12,4" |
| 105 | + Spacing="4"> |
90 | 106 |
|
91 | 107 | <!-- (Divider) --> |
92 | 108 | <Border Height="1" Background="{ThemeResource DividerStrokeColorDefaultBrush}" /> |
|
0 commit comments