|
16 | 16 | <!-- TODO: anymore work on this and it should be moved to a separate style file -->
|
17 | 17 |
|
18 | 18 | <reactive:ReactiveUserControl.Resources>
|
19 |
| - <ScrollViewer x:Key="TabContent" > |
| 19 | + <ScrollViewer x:Key="TabContent"> |
20 | 20 | <ItemsControl x:Name="HealthCheckItemsControl">
|
21 | 21 | <ItemsControl.ItemsPanel>
|
22 | 22 | <ItemsPanelTemplate>
|
|
34 | 34 | </ScrollViewer>
|
35 | 35 | </reactive:ReactiveUserControl.Resources>
|
36 | 36 |
|
37 |
| - <controls:EmptyState x:Name="EmptyState" |
38 |
| - Icon="{x:Static icons:IconValues.CheckCircle}" |
39 |
| - Header="{x:Static resources:Language.DiagnosticListView_EmptyState_Header}" |
40 |
| - Subtitle="{x:Static resources:Language.DiagnosticListView_EmptyState_Subtitle}"> |
41 | 37 |
|
42 |
| - <Border HorizontalAlignment="Stretch" MaxWidth="1000" Padding="24"> |
| 38 | + <!-- NOTE(insomnious): Using a single column grid to limit the max width of the content while still letting it stretch. |
| 39 | + HorizontalAlignment is ignored on a control when numerical entries are set on |
| 40 | + Width/Height/MaxWidth/MaxHeight etc. |
| 41 | + --> |
| 42 | + <Grid> |
| 43 | + <Grid.ColumnDefinitions> |
| 44 | + <ColumnDefinition Width="*" MaxWidth="1024" /> |
| 45 | + </Grid.ColumnDefinitions> |
43 | 46 |
|
44 |
| - <!-- need DockPanel to make the TabControl fill the available space, needed for ScrollViewer to calculate height properly --> |
45 |
| - <DockPanel> |
| 47 | + <!-- need DockPanel to make the TabControl fill the available space, needed for ScrollViewer to calculate height properly --> |
| 48 | + <DockPanel Margin="24"> |
46 | 49 |
|
47 |
| - <StackPanel Spacing="8" |
48 |
| - DockPanel.Dock="Top"> |
49 |
| - <StackPanel Orientation="Horizontal" Spacing="8"> |
50 |
| - <Border Width="48" Height="48"> |
51 |
| - <icons:UnifiedIcon Size="48" Value="{x:Static icons:IconValues.PictogramHealth}" /> |
52 |
| - </Border> |
53 |
| - <TextBlock Text="Health Check" |
54 |
| - Theme="{StaticResource HeadingSMSemiTheme}" |
55 |
| - Foreground="{StaticResource NeutralStrongBrush}" |
56 |
| - VerticalAlignment="Center" /> |
57 |
| - </StackPanel> |
| 50 | + <!-- header with pictogram --> |
| 51 | + <StackPanel Spacing="8" DockPanel.Dock="Top"> |
58 | 52 |
|
59 |
| - <TextBlock |
60 |
| - Text="Review your Loadout for any issues and learn how to resolve them if needed." |
61 |
| - Theme="{StaticResource BodyMDNormalTheme}" |
62 |
| - Foreground="{StaticResource NeutralStrongBrush}" /> |
| 53 | + <StackPanel Orientation="Horizontal" Spacing="8"> |
| 54 | + <Border Width="48" Height="48"> |
| 55 | + <icons:UnifiedIcon Size="48" Value="{x:Static icons:IconValues.PictogramHealth}" /> |
| 56 | + </Border> |
| 57 | + <TextBlock Text="Health Check" |
| 58 | + Theme="{StaticResource HeadingSMSemiTheme}" |
| 59 | + Foreground="{StaticResource NeutralStrongBrush}" |
| 60 | + VerticalAlignment="Center" /> |
63 | 61 | </StackPanel>
|
64 | 62 |
|
| 63 | + <TextBlock |
| 64 | + Text="Review your Loadout for any issues and learn how to resolve them if needed." |
| 65 | + Theme="{StaticResource BodyMDNormalTheme}" |
| 66 | + Foreground="{StaticResource NeutralStrongBrush}" |
| 67 | + TextWrapping="Wrap" /> |
| 68 | + </StackPanel> |
| 69 | + |
| 70 | + <controls:EmptyState x:Name="EmptyState" |
| 71 | + Icon="{x:Static icons:IconValues.CheckCircle}" |
| 72 | + Header="{x:Static resources:Language.DiagnosticListView_EmptyState_Header}" |
| 73 | + Subtitle="{x:Static resources:Language.DiagnosticListView_EmptyState_Subtitle}"> |
| 74 | + |
65 | 75 | <TabControl x:Name="TabControl"
|
66 | 76 | Margin="0,24,0,0"
|
67 | 77 | Padding="0,24,0,0"
|
|
71 | 81 | <TabItem x:Name="WarningTab" Header="WarningTab" Content="{StaticResource TabContent}" />
|
72 | 82 | <TabItem x:Name="CriticalTab" Header="CriticalTab" Content="{StaticResource TabContent}" />
|
73 | 83 | </TabControl>
|
| 84 | + </controls:EmptyState> |
74 | 85 |
|
75 |
| - </DockPanel> |
76 |
| - </Border> |
77 |
| - |
78 |
| - </controls:EmptyState> |
| 86 | + </DockPanel> |
| 87 | + </Grid> |
79 | 88 |
|
80 | 89 |
|
81 | 90 | </reactive:ReactiveUserControl>
|
0 commit comments