|
31 | 31 | <ResourceDictionary Source="ms-appx:///Styles/DefaultGridSplitterStyle.xaml" /> |
32 | 32 | </ResourceDictionary.MergedDictionaries> |
33 | 33 |
|
| 34 | + <ResourceDictionary.ThemeDictionaries> |
| 35 | + <ResourceDictionary x:Key="Light"> |
| 36 | + <ImageSource x:Key="EmptySidebar.48">ms-appx:///Assets/Sidebar/EmptySidebar_48_ThemeLight.svg</ImageSource> |
| 37 | + <ImageSource x:Key="EmptySidebar.100">ms-appx:///Assets/Sidebar/EmptySidebar_100_ThemeLight.svg</ImageSource> |
| 38 | + <ImageSource x:Key="EmptySidebar.200">ms-appx:///Assets/Sidebar/EmptySidebar_200_ThemeLight.svg</ImageSource> |
| 39 | + </ResourceDictionary> |
| 40 | + <ResourceDictionary x:Key="Dark"> |
| 41 | + <ImageSource x:Key="EmptySidebar.48">ms-appx:///Assets/Sidebar/EmptySidebar_48_ThemeDark.svg</ImageSource> |
| 42 | + <ImageSource x:Key="EmptySidebar.100">ms-appx:///Assets/Sidebar/EmptySidebar_100_ThemeDark.svg</ImageSource> |
| 43 | + <ImageSource x:Key="EmptySidebar.200">ms-appx:///Assets/Sidebar/EmptySidebar_200_ThemeDark.svg</ImageSource> |
| 44 | + </ResourceDictionary> |
| 45 | + <ResourceDictionary x:Key="HighContrast"> |
| 46 | + <ImageSource x:Key="EmptySidebar.48">ms-appx:///Assets/Sidebar/EmptySidebar_48_ThemeDark.svg</ImageSource> |
| 47 | + <ImageSource x:Key="EmptySidebar.100">ms-appx:///Assets/Sidebar/EmptySidebar_100_ThemeDark.svg</ImageSource> |
| 48 | + <ImageSource x:Key="EmptySidebar.200">ms-appx:///Assets/Sidebar/EmptySidebar_200_ThemeDark.svg</ImageSource> |
| 49 | + </ResourceDictionary> |
| 50 | + </ResourceDictionary.ThemeDictionaries> |
| 51 | + |
34 | 52 | <x:Boolean x:Key="True">True</x:Boolean> |
35 | 53 | <x:Boolean x:Key="False">False</x:Boolean> |
36 | 54 |
|
|
259 | 277 | </Grid> |
260 | 278 | </controls:SidebarView.InnerContent> |
261 | 279 |
|
| 280 | + <!-- Sidebar Content --> |
| 281 | + <controls:SidebarView.SidebarContent> |
| 282 | + <StackPanel |
| 283 | + x:Name="SidebarContent" |
| 284 | + Padding="16,0,16,0" |
| 285 | + VerticalAlignment="Center" |
| 286 | + Orientation="Vertical" |
| 287 | + Spacing="16" |
| 288 | + Visibility="{x:Bind SidebarAdaptiveViewModel.AreSectionsHidden, Mode=OneWay}"> |
| 289 | + |
| 290 | + <Image |
| 291 | + x:Name="EmptySidebarImage" |
| 292 | + MaxHeight="48" |
| 293 | + Source="{ThemeResource EmptySidebar.48}" /> |
| 294 | + |
| 295 | + <TextBlock |
| 296 | + Foreground="{ThemeResource TextFillColorTertiaryBrush}" |
| 297 | + Style="{StaticResource App.Theme.CaptionTextBlockStyle}" |
| 298 | + Text="{helpers:ResourceString Name=SectionsHiddenMessage}" |
| 299 | + TextAlignment="Center" /> |
| 300 | + |
| 301 | + </StackPanel> |
| 302 | + </controls:SidebarView.SidebarContent> |
| 303 | + |
| 304 | + <!-- Footer --> |
262 | 305 | <controls:SidebarView.Footer> |
263 | 306 | <StackPanel Padding="4" Spacing="4"> |
264 | | - <InfoBar |
265 | | - Title="{helpers:ResourceString Name=SectionsHidden}" |
266 | | - IsClosable="False" |
267 | | - IsOpen="{x:Bind SidebarAdaptiveViewModel.AreSectionsHidden, Mode=OneWay}" |
268 | | - Message="{helpers:ResourceString Name=SectionsHiddenMessage}" /> |
269 | | - |
270 | 307 | <Border |
271 | 308 | Height="1" |
272 | 309 | HorizontalAlignment="Stretch" |
|
328 | 365 | </controls:SidebarView> |
329 | 366 |
|
330 | 367 | <VisualStateManager.VisualStateGroups> |
| 368 | + <VisualStateGroup x:Name="SidebarWidthStates"> |
| 369 | + <VisualState x:Name="SmallSidebarWidthState"> |
| 370 | + <VisualState.Setters> |
| 371 | + <Setter Target="EmptySidebarImage.MaxHeight" Value="48" /> |
| 372 | + <Setter Target="EmptySidebarImage.Source" Value="{ThemeResource EmptySidebar.48}" /> |
| 373 | + </VisualState.Setters> |
| 374 | + </VisualState> |
| 375 | + <VisualState x:Name="MediumSidebarWidthState"> |
| 376 | + <VisualState.Setters> |
| 377 | + <Setter Target="EmptySidebarImage.MaxHeight" Value="100" /> |
| 378 | + <Setter Target="EmptySidebarImage.Source" Value="{ThemeResource EmptySidebar.100}" /> |
| 379 | + </VisualState.Setters> |
| 380 | + </VisualState> |
| 381 | + <VisualState x:Name="LargeSidebarWidthState"> |
| 382 | + <VisualState.Setters> |
| 383 | + <Setter Target="EmptySidebarImage.MaxHeight" Value="200" /> |
| 384 | + <Setter Target="EmptySidebarImage.Source" Value="{ThemeResource EmptySidebar.200}" /> |
| 385 | + </VisualState.Setters> |
| 386 | + </VisualState> |
| 387 | + </VisualStateGroup> |
| 388 | + |
331 | 389 | <VisualStateGroup> |
332 | 390 | <VisualState> |
333 | 391 | <VisualState.StateTriggers> |
|
343 | 401 | </VisualState.Setters> |
344 | 402 | </VisualState> |
345 | 403 | </VisualStateGroup> |
| 404 | + |
346 | 405 | <VisualStateGroup> |
347 | 406 | <VisualState x:Name="NormalSidebarState"> |
348 | 407 | <VisualState.StateTriggers> |
|
0 commit comments