|
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 | + MaxWidth="240" |
| 297 | + Foreground="{ThemeResource TextFillColorTertiaryBrush}" |
| 298 | + Style="{StaticResource App.Theme.CaptionTextBlockStyle}" |
| 299 | + Text="{helpers:ResourceString Name=SectionsHiddenMessage}" |
| 300 | + TextAlignment="Center" /> |
| 301 | + |
| 302 | + </StackPanel> |
| 303 | + </controls:SidebarView.SidebarContent> |
| 304 | + |
| 305 | + <!-- Footer --> |
262 | 306 | <controls:SidebarView.Footer>
|
263 | 307 | <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 | 308 | <Border
|
271 | 309 | Height="1"
|
272 | 310 | HorizontalAlignment="Stretch"
|
|
328 | 366 | </controls:SidebarView>
|
329 | 367 |
|
330 | 368 | <VisualStateManager.VisualStateGroups>
|
| 369 | + <VisualStateGroup x:Name="SidebarWidthStates"> |
| 370 | + <VisualState x:Name="SmallSidebarWidthState"> |
| 371 | + <VisualState.Setters> |
| 372 | + <Setter Target="EmptySidebarImage.MaxHeight" Value="48" /> |
| 373 | + <Setter Target="EmptySidebarImage.Source" Value="{ThemeResource EmptySidebar.48}" /> |
| 374 | + </VisualState.Setters> |
| 375 | + </VisualState> |
| 376 | + <VisualState x:Name="MediumSidebarWidthState"> |
| 377 | + <VisualState.Setters> |
| 378 | + <Setter Target="EmptySidebarImage.MaxHeight" Value="100" /> |
| 379 | + <Setter Target="EmptySidebarImage.Source" Value="{ThemeResource EmptySidebar.100}" /> |
| 380 | + </VisualState.Setters> |
| 381 | + </VisualState> |
| 382 | + <VisualState x:Name="LargeSidebarWidthState"> |
| 383 | + <VisualState.Setters> |
| 384 | + <Setter Target="EmptySidebarImage.MaxHeight" Value="200" /> |
| 385 | + <Setter Target="EmptySidebarImage.Source" Value="{ThemeResource EmptySidebar.200}" /> |
| 386 | + </VisualState.Setters> |
| 387 | + </VisualState> |
| 388 | + </VisualStateGroup> |
| 389 | + |
| 390 | + <VisualStateGroup x:Name="WindowHeightStates"> |
| 391 | + <VisualState> |
| 392 | + <VisualState.StateTriggers> |
| 393 | + <AdaptiveTrigger x:Name="SmallHeightAdaptiveTrigger" MinWindowHeight="440" /> |
| 394 | + </VisualState.StateTriggers> |
| 395 | + <VisualState.Setters> |
| 396 | + <Setter Target="EmptySidebarImage.Visibility" Value="Visible" /> |
| 397 | + </VisualState.Setters> |
| 398 | + </VisualState> |
| 399 | + <VisualState> |
| 400 | + <VisualState.StateTriggers> |
| 401 | + <AdaptiveTrigger x:Name="MediumHeightAdaptiveTrigger" MinWindowHeight="0" /> |
| 402 | + </VisualState.StateTriggers> |
| 403 | + <VisualState.Setters> |
| 404 | + <Setter Target="EmptySidebarImage.Visibility" Value="Collapsed" /> |
| 405 | + </VisualState.Setters> |
| 406 | + </VisualState> |
| 407 | + </VisualStateGroup> |
| 408 | + |
331 | 409 | <VisualStateGroup>
|
332 | 410 | <VisualState>
|
333 | 411 | <VisualState.StateTriggers>
|
|
343 | 421 | </VisualState.Setters>
|
344 | 422 | </VisualState>
|
345 | 423 | </VisualStateGroup>
|
| 424 | + |
346 | 425 | <VisualStateGroup>
|
347 | 426 | <VisualState x:Name="NormalSidebarState">
|
348 | 427 | <VisualState.StateTriggers>
|
|
0 commit comments