|
16 | 16 |
|
17 | 17 | <Grid |
18 | 18 | Width="240" |
19 | | - Padding="16,0" |
20 | 19 | AllowDrop="True" |
21 | 20 | Background="{ThemeResource App.Theme.InfoPane.BackgroundBrush}" |
22 | 21 | BackgroundSizing="InnerBorderEdge" |
|
28 | 27 | RowSpacing="8"> |
29 | 28 |
|
30 | 29 | <Grid.RowDefinitions> |
31 | | - <RowDefinition Height="Auto" /> |
32 | | - <RowDefinition /> |
| 30 | + <RowDefinition Height="*" /> |
33 | 31 | <RowDefinition Height="Auto" /> |
34 | 32 | </Grid.RowDefinitions> |
35 | 33 |
|
36 | | - <!-- Title --> |
37 | | - <Border |
| 34 | + <StackPanel |
38 | 35 | Grid.Row="0" |
39 | 36 | Padding="12" |
40 | | - BorderBrush="{ThemeResource ControlStrokeColorSecondaryBrush}" |
41 | | - BorderThickness="0,0,0,1"> |
| 37 | + Spacing="8"> |
| 38 | + <!-- Title --> |
42 | 39 | <TextBlock |
43 | 40 | HorizontalAlignment="Center" |
44 | | - Opacity="0.8" |
| 41 | + Foreground="{ThemeResource TextFillColorSecondaryBrush}" |
| 42 | + Style="{StaticResource App.Theme.BodyStrongTextBlockStyle}" |
45 | 43 | Text="{helpers:ResourceString Name=Shelf}" /> |
46 | | - </Border> |
47 | 44 |
|
48 | | - <!-- Items List --> |
49 | | - <ListView |
50 | | - Grid.Row="1" |
51 | | - DragItemsStarting="ListView_DragItemsStarting" |
52 | | - ItemsSource="{x:Bind ItemsSource, Mode=OneWay}" |
53 | | - SelectionMode="Extended"> |
54 | | - <ListView.ItemTemplate> |
55 | | - <DataTemplate x:DataType="data:ShelfItem"> |
56 | | - <StackPanel Orientation="Horizontal" Spacing="8"> |
57 | | - <Image Height="20" Source="{x:Bind Icon, Mode=OneWay, Converter={StaticResource ImageModelToImageConverter}}" /> |
58 | | - <TextBlock Text="{x:Bind Name, Mode=OneWay}" /> |
59 | | - </StackPanel> |
60 | | - </DataTemplate> |
61 | | - </ListView.ItemTemplate> |
62 | | - </ListView> |
| 45 | + <!-- (Divider) --> |
| 46 | + <Border Height="1" Background="{ThemeResource DividerStrokeColorDefaultBrush}" /> |
| 47 | + |
| 48 | + <!-- Items List --> |
| 49 | + <ListView |
| 50 | + DragItemsStarting="ListView_DragItemsStarting" |
| 51 | + ItemsSource="{x:Bind ItemsSource, Mode=OneWay}" |
| 52 | + SelectionMode="Extended"> |
| 53 | + <ListView.ItemTemplate> |
| 54 | + <DataTemplate x:DataType="data:ShelfItem"> |
| 55 | + <StackPanel Orientation="Horizontal" Spacing="8"> |
| 56 | + <Image Height="20" Source="{x:Bind Icon, Mode=OneWay, Converter={StaticResource ImageModelToImageConverter}}" /> |
| 57 | + <TextBlock Text="{x:Bind Name, Mode=OneWay}" /> |
| 58 | + </StackPanel> |
| 59 | + </DataTemplate> |
| 60 | + </ListView.ItemTemplate> |
| 61 | + </ListView> |
| 62 | + </StackPanel> |
| 63 | + |
63 | 64 |
|
64 | | - <!-- Bottom Actions --> |
65 | 65 | <StackPanel |
66 | | - Grid.Row="2" |
67 | | - Padding="8" |
68 | | - BorderBrush="{ThemeResource ControlStrokeColorSecondaryBrush}" |
69 | | - BorderThickness="0,1,0,0"> |
| 66 | + Grid.Row="1" |
| 67 | + Padding="12,8,12,8" |
| 68 | + Spacing="4"> |
| 69 | + <!-- (Divider) --> |
| 70 | + <Border Height="1" Background="{ThemeResource DividerStrokeColorDefaultBrush}" /> |
| 71 | + |
| 72 | + <!-- Bottom Actions --> |
70 | 73 | <HyperlinkButton |
71 | 74 | HorizontalAlignment="Center" |
72 | 75 | VerticalAlignment="Center" |
|
0 commit comments