|
11 | 11 | mc:Ignorable="d"> |
12 | 12 |
|
13 | 13 | <UserControl.Resources> |
14 | | - <converters:ImageModelToImageConverter x:Key="ImageModelToImageConverter" /> |
| 14 | + <ResourceDictionary> |
| 15 | + <converters:ImageModelToImageConverter x:Key="ImageModelToImageConverter" /> |
| 16 | + |
| 17 | + <ResourceDictionary.ThemeDictionaries> |
| 18 | + <ResourceDictionary x:Key="Light"> |
| 19 | + <ImageSource x:Key="EmptyShelf.48">ms-appx:///Assets/Shelf/EmptyShelf_48_ThemeLight.svg</ImageSource> |
| 20 | + <ImageSource x:Key="EmptyShelf.100">ms-appx:///Assets/Shelf/EmptyShelf_100_ThemeLight.svg</ImageSource> |
| 21 | + <ImageSource x:Key="EmptyShelf.200">ms-appx:///Assets/Shelf/EmptyShelf_200_ThemeLight.svg</ImageSource> |
| 22 | + </ResourceDictionary> |
| 23 | + <ResourceDictionary x:Key="Dark"> |
| 24 | + <ImageSource x:Key="EmptyShelf.48">ms-appx:///Assets/Shelf/EmptyShelf_48_ThemeDark.svg</ImageSource> |
| 25 | + <ImageSource x:Key="EmptyShelf.100">ms-appx:///Assets/Shelf/EmptyShelf_100_ThemeDark.svg</ImageSource> |
| 26 | + <ImageSource x:Key="EmptyShelf.200">ms-appx:///Assets/Shelf/EmptyShelf_200_ThemeDark.svg</ImageSource> |
| 27 | + </ResourceDictionary> |
| 28 | + <ResourceDictionary x:Key="HighContrast"> |
| 29 | + <ImageSource x:Key="EmptyShelf.48">ms-appx:///Assets/Shelf/EmptyShelf_48_ThemeDark.svg</ImageSource> |
| 30 | + <ImageSource x:Key="EmptyShelf.100">ms-appx:///Assets/Shelf/EmptyShelf_100_ThemeDark.svg</ImageSource> |
| 31 | + <ImageSource x:Key="EmptyShelf.200">ms-appx:///Assets/Shelf/EmptyShelf_200_ThemeDark.svg</ImageSource> |
| 32 | + </ResourceDictionary> |
| 33 | + </ResourceDictionary.ThemeDictionaries> |
| 34 | + |
| 35 | + </ResourceDictionary> |
15 | 36 | </UserControl.Resources> |
16 | 37 |
|
17 | 38 | <Grid |
|
31 | 52 | <RowDefinition Height="Auto" /> |
32 | 53 | </Grid.RowDefinitions> |
33 | 54 |
|
| 55 | + <!-- Shelf Header --> |
34 | 56 | <StackPanel |
35 | 57 | Grid.Row="0" |
36 | 58 | Padding="12,12,12,4" |
|
48 | 70 |
|
49 | 71 | </StackPanel> |
50 | 72 |
|
| 73 | + <!-- Empty Shelf Content --> |
| 74 | + <StackPanel |
| 75 | + x:Name="EmptyShelfContent" |
| 76 | + Grid.Row="1" |
| 77 | + Padding="16,0,16,0" |
| 78 | + VerticalAlignment="Center" |
| 79 | + Orientation="Vertical" |
| 80 | + Spacing="16" |
| 81 | + Visibility="Collapsed"> |
| 82 | + |
| 83 | + <Image |
| 84 | + x:Name="EmptyShelfImage" |
| 85 | + MaxHeight="48" |
| 86 | + Source="{ThemeResource EmptyShelf.48}" /> |
| 87 | + |
| 88 | + <TextBlock |
| 89 | + MaxWidth="240" |
| 90 | + Foreground="{ThemeResource TextFillColorTertiaryBrush}" |
| 91 | + Style="{StaticResource App.Theme.CaptionTextBlockStyle}" |
| 92 | + Text="{helpers:ResourceString Name=EmptyShelfText}" |
| 93 | + TextAlignment="Center" /> |
| 94 | + |
| 95 | + </StackPanel> |
| 96 | + |
51 | 97 | <!-- Items List --> |
52 | 98 | <ListView |
53 | 99 | x:Name="ShelfItemsList" |
|
101 | 147 | </ListView> |
102 | 148 |
|
103 | 149 |
|
| 150 | + <!-- Shelf Footer --> |
104 | 151 | <StackPanel |
105 | 152 | Grid.Row="2" |
106 | 153 | Padding="12,12,12,4" |
|
0 commit comments