|
33 | 33 |
|
34 | 34 | <Style x:Key="CodeBlockScrollViewerStyle" |
35 | 35 | TargetType="ScrollViewer"> |
| 36 | + <Setter Property="AutomationProperties.AccessibilityView" Value="Raw" /> |
36 | 37 | <Setter Property="HorizontalScrollMode" Value="Auto" /> |
37 | 38 | <Setter Property="HorizontalScrollBarVisibility" Value="Auto" /> |
38 | 39 | <Setter Property="VerticalScrollMode" Value="Disabled" /> |
|
133 | 134 |
|
134 | 135 | <DataTemplate x:Key="FragmentProfileViewModelTemplate" |
135 | 136 | x:DataType="local:FragmentProfileViewModel"> |
136 | | - <local:SettingContainer CurrentValue="{x:Bind SourceName, Mode=OneWay}" |
137 | | - Style="{StaticResource ExpanderSettingContainerStyle}"> |
138 | | - <local:SettingContainer.Header> |
139 | | - <StackPanel Orientation="Horizontal"> |
140 | | - <IconSourceElement Width="16" |
141 | | - Height="16" |
142 | | - Margin="0,0,8,0" |
143 | | - IconSource="{x:Bind mtu:IconPathConverter.IconSourceWUX(Profile.EvaluatedIcon), Mode=OneWay}" /> |
144 | | - |
145 | | - <TextBlock Text="{x:Bind Profile.Name, Mode=OneWay}" /> |
146 | | - |
147 | | - <Button x:Name="NavigateToProfileButton" |
148 | | - x:Uid="Extensions_NavigateToProfileButton" |
149 | | - Click="NavigateToProfile_Click" |
150 | | - Style="{StaticResource SettingContainerResetButtonStyle}" |
151 | | - Tag="{x:Bind Profile.Guid}"> |
152 | | - <FontIcon Glyph="" |
153 | | - Style="{StaticResource SettingContainerFontIconStyle}" /> |
154 | | - </Button> |
155 | | - </StackPanel> |
156 | | - </local:SettingContainer.Header> |
157 | | - <local:SettingContainer.Content> |
| 137 | + <muxc:Expander AutomationProperties.Name="{x:Bind AccessibleName}" |
| 138 | + Style="{StaticResource ExpanderStyle}"> |
| 139 | + <muxc:Expander.Header> |
| 140 | + <Grid> |
| 141 | + <Grid.ColumnDefinitions> |
| 142 | + <ColumnDefinition Width="*" /> |
| 143 | + <ColumnDefinition Width="Auto" /> |
| 144 | + </Grid.ColumnDefinitions> |
| 145 | + |
| 146 | + <StackPanel Grid.Column="0" |
| 147 | + Orientation="Horizontal"> |
| 148 | + <IconSourceElement Width="16" |
| 149 | + Height="16" |
| 150 | + Margin="0,0,8,0" |
| 151 | + IconSource="{x:Bind mtu:IconPathConverter.IconSourceWUX(Profile.EvaluatedIcon), Mode=OneWay}" /> |
| 152 | + |
| 153 | + <TextBlock Text="{x:Bind Profile.Name, Mode=OneWay}" /> |
| 154 | + |
| 155 | + <Button x:Name="NavigateToProfileButton" |
| 156 | + x:Uid="Extensions_NavigateToProfileButton" |
| 157 | + Click="NavigateToProfile_Click" |
| 158 | + Style="{StaticResource SettingContainerResetButtonStyle}" |
| 159 | + Tag="{x:Bind Profile.Guid}"> |
| 160 | + <FontIcon Glyph="" |
| 161 | + Style="{StaticResource SettingContainerFontIconStyle}" /> |
| 162 | + </Button> |
| 163 | + </StackPanel> |
| 164 | + |
| 165 | + <TextBlock Grid.Column="1" |
| 166 | + Style="{StaticResource SettingContainerCurrentValueTextBlockStyle}" |
| 167 | + Text="{x:Bind SourceName}" /> |
| 168 | + </Grid> |
| 169 | + </muxc:Expander.Header> |
| 170 | + <muxc:Expander.Content> |
158 | 171 | <ScrollViewer Style="{StaticResource CodeBlockScrollViewerStyle}"> |
159 | 172 | <TextBlock Style="{StaticResource CodeBlockStyle}" |
160 | 173 | Text="{x:Bind Json, Mode=OneWay}" /> |
161 | 174 | </ScrollViewer> |
162 | | - </local:SettingContainer.Content> |
163 | | - </local:SettingContainer> |
| 175 | + </muxc:Expander.Content> |
| 176 | + </muxc:Expander> |
164 | 177 | </DataTemplate> |
165 | 178 |
|
166 | 179 | <!-- This styling matches that of ExpanderSettingContainerStyle for consistency --> |
167 | 180 | <Style x:Key="ExpanderStyle" |
168 | 181 | TargetType="muxc:Expander"> |
| 182 | + <Setter Property="MaxWidth" Value="1000" /> |
169 | 183 | <Setter Property="MinHeight" Value="64" /> |
170 | 184 | <Setter Property="Margin" Value="0,4,0,0" /> |
171 | 185 | <Setter Property="HorizontalAlignment" Value="Stretch" /> |
|
321 | 335 |
|
322 | 336 | <DataTemplate x:Key="FragmentColorSchemeViewModelTemplate" |
323 | 337 | x:DataType="local:FragmentColorSchemeViewModel"> |
324 | | - <local:SettingContainer CurrentValue="{x:Bind SourceName, Mode=OneWay}" |
325 | | - Style="{StaticResource ExpanderSettingContainerStyle}"> |
326 | | - <local:SettingContainer.Header> |
327 | | - <StackPanel Orientation="Horizontal"> |
328 | | - <ContentPresenter Content="{x:Bind ColorSchemeVM, Mode=OneWay}" |
329 | | - ContentTemplate="{StaticResource ColorSchemeVMTemplate}" /> |
330 | | - <Button x:Name="NavigateToColorSchemeButton" |
331 | | - x:Uid="Extensions_NavigateToColorSchemeButton" |
332 | | - Click="NavigateToColorScheme_Click" |
333 | | - Style="{StaticResource SettingContainerResetButtonStyle}" |
334 | | - Tag="{x:Bind ColorSchemeVM}"> |
335 | | - <FontIcon Glyph="" |
336 | | - Style="{StaticResource SettingContainerFontIconStyle}" /> |
337 | | - </Button> |
338 | | - </StackPanel> |
339 | | - </local:SettingContainer.Header> |
340 | | - <local:SettingContainer.Content> |
| 338 | + <muxc:Expander AutomationProperties.Name="{x:Bind AccessibleName}" |
| 339 | + Style="{StaticResource ExpanderStyle}"> |
| 340 | + <muxc:Expander.Header> |
| 341 | + <Grid> |
| 342 | + <Grid.ColumnDefinitions> |
| 343 | + <ColumnDefinition Width="*" /> |
| 344 | + <ColumnDefinition Width="Auto" /> |
| 345 | + </Grid.ColumnDefinitions> |
| 346 | + |
| 347 | + <StackPanel Grid.Column="0" |
| 348 | + Orientation="Horizontal"> |
| 349 | + <ContentPresenter Content="{x:Bind ColorSchemeVM, Mode=OneWay}" |
| 350 | + ContentTemplate="{StaticResource ColorSchemeVMTemplate}" /> |
| 351 | + <Button x:Name="NavigateToColorSchemeButton" |
| 352 | + x:Uid="Extensions_NavigateToColorSchemeButton" |
| 353 | + Click="NavigateToColorScheme_Click" |
| 354 | + Style="{StaticResource SettingContainerResetButtonStyle}" |
| 355 | + Tag="{x:Bind ColorSchemeVM}"> |
| 356 | + <FontIcon Glyph="" |
| 357 | + Style="{StaticResource SettingContainerFontIconStyle}" /> |
| 358 | + </Button> |
| 359 | + </StackPanel> |
| 360 | + |
| 361 | + <TextBlock Grid.Column="1" |
| 362 | + Style="{StaticResource SettingContainerCurrentValueTextBlockStyle}" |
| 363 | + Text="{x:Bind SourceName}" /> |
| 364 | + </Grid> |
| 365 | + </muxc:Expander.Header> |
| 366 | + <muxc:Expander.Content> |
341 | 367 | <ScrollViewer Style="{StaticResource CodeBlockScrollViewerStyle}"> |
342 | 368 | <TextBlock Style="{StaticResource CodeBlockStyle}" |
343 | 369 | Text="{x:Bind Json, Mode=OneWay}" /> |
344 | 370 | </ScrollViewer> |
345 | | - </local:SettingContainer.Content> |
346 | | - </local:SettingContainer> |
| 371 | + </muxc:Expander.Content> |
| 372 | + </muxc:Expander> |
347 | 373 | </DataTemplate> |
348 | 374 | </ResourceDictionary> |
349 | 375 | </Page.Resources> |
|
367 | 393 | <TextBlock x:Uid="Extensions_NoActiveExtensionsDisclaimer" |
368 | 394 | Style="{StaticResource ItalicDisclaimerStyle}" |
369 | 395 | Visibility="{x:Bind ViewModel.NoExtensionPackages, Mode=OneWay}" /> |
370 | | - <ItemsControl IsTabStop="False" |
| 396 | + <ItemsControl x:Name="ActiveExtensionsList" |
| 397 | + IsTabStop="False" |
371 | 398 | ItemTemplateSelector="{StaticResource ExtensionPackageNavigatorTemplateSelector}" |
372 | | - ItemsSource="{x:Bind ViewModel.ExtensionPackages}" /> |
| 399 | + ItemsSource="{x:Bind ViewModel.ExtensionPackages}" |
| 400 | + XYFocusKeyboardNavigation="Enabled" /> |
373 | 401 | </StackPanel> |
374 | 402 |
|
375 | 403 | <!-- [Extension View Only] --> |
|
430 | 458 | <TextBlock x:Uid="Extensions_NoModifiedProfilesDisclaimer" |
431 | 459 | Style="{StaticResource ItalicDisclaimerStyle}" |
432 | 460 | Visibility="{x:Bind ViewModel.NoProfilesModified, Mode=OneWay}" /> |
433 | | - <ItemsControl IsTabStop="False" |
| 461 | + <ItemsControl x:Name="ModifiedProfilesList" |
| 462 | + IsTabStop="False" |
434 | 463 | ItemTemplate="{StaticResource FragmentProfileViewModelTemplate}" |
435 | 464 | ItemsSource="{x:Bind ViewModel.ProfilesModified, Mode=OneWay}" /> |
436 | 465 | </StackPanel> |
|
442 | 471 | <TextBlock x:Uid="Extensions_NoAddedProfilesDisclaimer" |
443 | 472 | Style="{StaticResource ItalicDisclaimerStyle}" |
444 | 473 | Visibility="{x:Bind ViewModel.NoProfilesAdded, Mode=OneWay}" /> |
445 | | - <ItemsControl IsTabStop="False" |
| 474 | + <ItemsControl x:Name="AddedProfilesList" |
| 475 | + IsTabStop="False" |
446 | 476 | ItemTemplate="{StaticResource FragmentProfileViewModelTemplate}" |
447 | 477 | ItemsSource="{x:Bind ViewModel.ProfilesAdded, Mode=OneWay}" /> |
448 | 478 | </StackPanel> |
|
454 | 484 | <TextBlock x:Uid="Extensions_NoAddedColorSchemesDisclaimer" |
455 | 485 | Style="{StaticResource ItalicDisclaimerStyle}" |
456 | 486 | Visibility="{x:Bind ViewModel.NoSchemesAdded, Mode=OneWay}" /> |
457 | | - <ItemsControl IsTabStop="False" |
| 487 | + <ItemsControl x:Name="AddedColorSchemesList" |
| 488 | + IsTabStop="False" |
458 | 489 | ItemTemplate="{StaticResource FragmentColorSchemeViewModelTemplate}" |
459 | 490 | ItemsSource="{x:Bind ViewModel.ColorSchemesAdded, Mode=OneWay}" /> |
460 | 491 | </StackPanel> |
|
0 commit comments