19f8b9c3ca
When navigating the settings (or saving/discarding) the animation of the main content overflows the bar with the save and discard buttons. If the main content is encapsulated in a ScrollView the issue goes away. Fixes one of the issues in #10609 ## Validation Steps Performed Clicked around a whole bunch and have not seen the overflow happen again. Verified that on tabs where scroll is necessary it can still be scrolled, and reflow of elements still functions.
153 lines
7 KiB
XML
153 lines
7 KiB
XML
<!--
|
|
Copyright (c) Microsoft Corporation. All rights reserved. Licensed under
|
|
the MIT License. See LICENSE in the project root for license information.
|
|
-->
|
|
<Page x:Class="Microsoft.Terminal.Settings.Editor.MainPage"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:muxc="using:Microsoft.UI.Xaml.Controls"
|
|
mc:Ignorable="d">
|
|
|
|
<Page.Resources>
|
|
<ResourceDictionary>
|
|
<ResourceDictionary.MergedDictionaries>
|
|
<ResourceDictionary Source="CommonResources.xaml" />
|
|
</ResourceDictionary.MergedDictionaries>
|
|
|
|
<AcrylicBrush x:Key="NavigationViewDefaultPaneBackground"
|
|
BackgroundSource="Backdrop"
|
|
FallbackColor="{ThemeResource SystemChromeMediumLowColor}"
|
|
TintColor="{ThemeResource SystemChromeMediumColor}"
|
|
TintOpacity="0.5" />
|
|
<AcrylicBrush x:Key="NavigationViewTopPaneBackground"
|
|
BackgroundSource="Backdrop"
|
|
FallbackColor="{ThemeResource SystemChromeMediumLowColor}"
|
|
TintColor="{ThemeResource SystemChromeMediumColor}"
|
|
TintOpacity="0.5" />
|
|
<AcrylicBrush x:Key="NavigationViewExpandedPaneBackground"
|
|
BackgroundSource="HostBackdrop"
|
|
FallbackColor="{ThemeResource SystemChromeMediumLowColor}"
|
|
TintColor="{ThemeResource SystemChromeMediumColor}"
|
|
TintOpacity="0.7" />
|
|
</ResourceDictionary>
|
|
</Page.Resources>
|
|
|
|
<muxc:NavigationView x:Name="SettingsNav"
|
|
Header="{Binding ElementName=SettingsNav, Path=SelectedItem.Content, Mode=OneWay}"
|
|
IsBackButtonVisible="Collapsed"
|
|
IsSettingsVisible="False"
|
|
ItemInvoked="SettingsNav_ItemInvoked"
|
|
Loaded="SettingsNav_Loaded"
|
|
TabFocusNavigation="Cycle">
|
|
|
|
<muxc:NavigationView.MenuItems>
|
|
|
|
<muxc:NavigationViewItem x:Uid="Nav_Launch"
|
|
Tag="Launch_Nav">
|
|
<muxc:NavigationViewItem.Icon>
|
|
<FontIcon Glyph="" />
|
|
</muxc:NavigationViewItem.Icon>
|
|
</muxc:NavigationViewItem>
|
|
|
|
<muxc:NavigationViewItem x:Uid="Nav_Interaction"
|
|
Tag="Interaction_Nav">
|
|
<muxc:NavigationViewItem.Icon>
|
|
<FontIcon Glyph="" />
|
|
</muxc:NavigationViewItem.Icon>
|
|
</muxc:NavigationViewItem>
|
|
|
|
<muxc:NavigationViewItem x:Uid="Nav_Appearance"
|
|
Tag="GlobalAppearance_Nav">
|
|
<muxc:NavigationViewItem.Icon>
|
|
<FontIcon Glyph="" />
|
|
</muxc:NavigationViewItem.Icon>
|
|
</muxc:NavigationViewItem>
|
|
|
|
<muxc:NavigationViewItem x:Uid="Nav_ColorSchemes"
|
|
Tag="ColorSchemes_Nav">
|
|
<muxc:NavigationViewItem.Icon>
|
|
<FontIcon Glyph="" />
|
|
</muxc:NavigationViewItem.Icon>
|
|
</muxc:NavigationViewItem>
|
|
|
|
<muxc:NavigationViewItem x:Uid="Nav_Rendering"
|
|
Tag="Rendering_Nav">
|
|
<muxc:NavigationViewItem.Icon>
|
|
<FontIcon Glyph="" />
|
|
</muxc:NavigationViewItem.Icon>
|
|
</muxc:NavigationViewItem>
|
|
|
|
<muxc:NavigationViewItem x:Uid="Nav_Actions"
|
|
Tag="Actions_Nav">
|
|
<muxc:NavigationViewItem.Icon>
|
|
<FontIcon Glyph="" />
|
|
</muxc:NavigationViewItem.Icon>
|
|
</muxc:NavigationViewItem>
|
|
|
|
<muxc:NavigationViewItemHeader x:Uid="Nav_Profiles" />
|
|
|
|
<muxc:NavigationViewItem x:Name="BaseLayerMenuItem"
|
|
x:Uid="Nav_ProfileDefaults"
|
|
Tag="GlobalProfile_Nav"
|
|
Visibility="{x:Bind ShowBaseLayerMenuItem}">
|
|
<muxc:NavigationViewItem.Icon>
|
|
<FontIcon Glyph="" />
|
|
</muxc:NavigationViewItem.Icon>
|
|
</muxc:NavigationViewItem>
|
|
|
|
</muxc:NavigationView.MenuItems>
|
|
|
|
<muxc:NavigationView.PaneFooter>
|
|
<!-- The OpenJson item needs both Tapped and KeyDown handler -->
|
|
<muxc:NavigationViewItem x:Name="OpenJsonNavItem"
|
|
x:Uid="Nav_OpenJSON"
|
|
KeyDown="OpenJsonKeyDown"
|
|
Tapped="OpenJsonTapped">
|
|
<muxc:NavigationViewItem.Icon>
|
|
<FontIcon Glyph="" />
|
|
</muxc:NavigationViewItem.Icon>
|
|
</muxc:NavigationViewItem>
|
|
</muxc:NavigationView.PaneFooter>
|
|
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="*" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
<ScrollViewer Grid.Row="0">
|
|
<Frame x:Name="contentFrame" />
|
|
</ScrollViewer>
|
|
<Grid Grid.Row="1"
|
|
Height="100"
|
|
BorderBrush="{ThemeResource SystemBaseLowColor}"
|
|
BorderThickness="0,1,0,0">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
<TextBlock x:Uid="Settings_UnsavedSettingsWarning"
|
|
Margin="30,0,0,0"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Center"
|
|
Foreground="Goldenrod"
|
|
TextAlignment="Left"
|
|
Visibility="Collapsed" />
|
|
<StackPanel Margin="0,0,30,0"
|
|
HorizontalAlignment="Right"
|
|
VerticalAlignment="Center"
|
|
Orientation="Horizontal">
|
|
<Button x:Name="ResetButton"
|
|
x:Uid="Settings_ResetSettingsButton"
|
|
Click="ResetButton_Click" />
|
|
<Button x:Name="SaveButton"
|
|
x:Uid="Settings_SaveSettingsButton"
|
|
Margin="10,0,0,0"
|
|
Click="SaveButton_Click"
|
|
Style="{StaticResource AccentButtonStyle}" />
|
|
</StackPanel>
|
|
</Grid>
|
|
</Grid>
|
|
</muxc:NavigationView>
|
|
</Page>
|