| 1 | <Page |
| 2 | x:Class="WslSettings.Views.Settings.FileSystemPage" |
| 3 | xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
| 4 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
| 5 | xmlns:ctControls="using:CommunityToolkit.WinUI.Controls" |
| 6 | xmlns:behaviors="using:WslSettings.Behaviors" |
| 7 | behaviors:NavigationViewHeaderBehavior.HeaderMode="Never"> |
| 8 | |
| 9 | <Grid Margin="{ThemeResource ContentPageMargin}" |
| 10 | IsTabStop="True" |
| 11 | AutomationProperties.LandmarkType="Main" |
| 12 | x:Name="FileSystemPageRoot"> |
| 13 | <Grid.RowDefinitions> |
| 14 | <RowDefinition Height="Auto" /> |
| 15 | <RowDefinition Height="Auto" /> |
| 16 | <RowDefinition Height="*" /> |
| 17 | </Grid.RowDefinitions> |
| 18 | <TextBlock x:Uid="Settings_FileSystemPageTitle" Style="{ThemeResource PageHeaderTextBlockStyle}" Margin="{StaticResource MediumSmallBottomMargin}" HorizontalAlignment="Left" AutomationProperties.HeadingLevel="Level1"/> |
| 19 | <TextBlock x:Uid="Settings_ErrorTryAgainLater" x:Name="Settings_ErrorTryAgainLater" Grid.Row="1" HorizontalAlignment="Left" AutomationProperties.LiveSetting="Assertive" |
| 20 | Visibility="{x:Bind ViewModel.ErrorVisibility, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource BooleanToVisibilityConverter}}"/> |
| 21 | <ScrollViewer Grid.Row="2" VerticalScrollBarVisibility="Auto" |
| 22 | Visibility="{x:Bind ViewModel.SettingsContentVisibility, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Converter={StaticResource BooleanToVisibilityConverter}}"> |
| 23 | <StackPanel Spacing="{StaticResource SettingsCardSpacing}"> |
| 24 | <ctControls:SettingsExpander x:Name="DefaultVHDSizeExpander" x:Uid="Settings_DefaultVHDSize"> |
| 25 | <TextBlock Style="{StaticResource TextBlockSettingStyle}" Text="{x:Bind ViewModel.DefaultVHDSize, Mode=OneWay, Converter={StaticResource MegabyteStringConverter}}"/> |
| 26 | <ctControls:SettingsExpander.Items> |
| 27 | <ctControls:SettingsCard HorizontalContentAlignment="Left" ContentAlignment="Left" Margin="{StaticResource SettingsExpanderItemMargin}"> |
| 28 | <StackPanel Orientation="Horizontal"> |
| 29 | <TextBox x:Name="DefaultVHDSizeTextBox" x:Uid="Settings_DefaultVHDSizeTextBox" Style="{StaticResource TextBoxSettingStyle}" Margin="{StaticResource InputControlSpacingMargin}" |
| 30 | Text="{x:Bind ViewModel.DefaultVHDSize, Mode=TwoWay, UpdateSourceTrigger=LostFocus, Converter={StaticResource MegabyteNumberConverter}}" TextChanged="DefaultVHDSizeTextBox_TextChanged"/> |
| 31 | <Button x:Uid="Settings_DefaultVHDSizeResetButton" Style="{StaticResource ButtonSettingStyle}" Margin="{StaticResource InputControlSpacingMargin}" |
| 32 | Command="{x:Bind ViewModel.DefaultVHDSize_ResetCommand}" IsEnabled="{x:Bind ViewModel.DefaultVHDSize_ResetEnabled, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" |
| 33 | Click="Settings_ResetButton_Click"/> |
| 34 | </StackPanel> |
| 35 | </ctControls:SettingsCard> |
| 36 | </ctControls:SettingsExpander.Items> |
| 37 | </ctControls:SettingsExpander> |
| 38 | </StackPanel> |
| 39 | </ScrollViewer> |
| 40 | </Grid> |
| 41 | </Page> |