|
12 | 12 | xmlns:uc="using:Files.App.UserControls" |
13 | 13 | xmlns:vm="using:Files.App.ViewModels.Settings" |
14 | 14 | xmlns:wctconverters="using:CommunityToolkit.WinUI.Converters" |
15 | | - SizeChanged="Page_SizeChanged" |
16 | 15 | mc:Ignorable="d"> |
17 | 16 |
|
18 | 17 | <Page.Resources> |
|
96 | 95 |
|
97 | 96 | <TextBox |
98 | 97 | x:Name="IDENameTextBox" |
99 | | - Grid.ColumnSpan="2" |
100 | | - Width="300" |
101 | | - HorizontalAlignment="Left" |
| 98 | + Grid.ColumnSpan="3" |
| 99 | + HorizontalAlignment="Stretch" |
102 | 100 | VerticalAlignment="Center" |
103 | 101 | PlaceholderText="{helpers:ResourceString Name=Name}" |
104 | 102 | Text="{x:Bind ViewModel.IDEName, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" |
|
142 | 140 | Grid.Row="1" |
143 | 141 | Grid.ColumnSpan="3" |
144 | 142 | Margin="0,8,0,0" |
145 | | - Orientation="Horizontal" |
146 | | - Spacing="8" |
| 143 | + Orientation="Vertical" |
| 144 | + Spacing="12" |
147 | 145 | Visibility="{x:Bind ViewModel.IsEditingIDEConfig, Converter={StaticResource BoolVisibilityConverter}, Mode=OneWay}"> |
148 | 146 | <TextBox |
149 | 147 | x:Name="IDEPathTextBox" |
150 | | - Width="300" |
| 148 | + HorizontalAlignment="Stretch" |
151 | 149 | VerticalAlignment="Center" |
152 | 150 | PlaceholderText="{helpers:ResourceString Name=IDEPathPlaceholder}" |
153 | 151 | Text="{x:Bind ViewModel.IDEPath, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"> |
|
248 | 246 | <VisualStateManager.VisualStateGroups> |
249 | 247 | <VisualStateGroup> |
250 | 248 | <VisualState x:Name="DefaultState"> |
| 249 | + <VisualState.StateTriggers> |
| 250 | + <AdaptiveTrigger MinWindowWidth="780" /> |
| 251 | + </VisualState.StateTriggers> |
251 | 252 | <VisualState.Setters> |
252 | 253 | <Setter Target="IDEPathTextBox.Width" Value="300" /> |
253 | 254 | <Setter Target="IDEPathTextBox.HorizontalAlignment" Value="Left" /> |
254 | | - <Setter Target="IDEPathTextBox.(Grid.Column)" Value="0" /> |
255 | 255 | <Setter Target="IDENameTextBox.Width" Value="300" /> |
256 | 256 | <Setter Target="IDENameTextBox.HorizontalAlignment" Value="Left" /> |
257 | 257 | <Setter Target="IDENameTextBox.(Grid.ColumnSpan)" Value="2" /> |
|
260 | 260 | </VisualState.Setters> |
261 | 261 | </VisualState> |
262 | 262 | <VisualState x:Name="CompactState"> |
| 263 | + <VisualState.StateTriggers> |
| 264 | + <AdaptiveTrigger MinWindowWidth="0" /> |
| 265 | + </VisualState.StateTriggers> |
263 | 266 | <VisualState.Setters> |
264 | 267 | <Setter Target="IDEPathTextBox.Width" Value="Auto" /> |
265 | 268 | <Setter Target="IDEPathTextBox.HorizontalAlignment" Value="Stretch" /> |
266 | | - <Setter Target="IDEPathTextBox.(Grid.Column)" Value="3" /> |
267 | 269 | <Setter Target="IDENameTextBox.Width" Value="Auto" /> |
268 | 270 | <Setter Target="IDENameTextBox.HorizontalAlignment" Value="Stretch" /> |
269 | 271 | <Setter Target="IDENameTextBox.(Grid.ColumnSpan)" Value="3" /> |
|
0 commit comments