|
63 | 63 | <StackPanel Orientation="Vertical"> |
64 | 64 | <Grid |
65 | 65 | x:Name="IDEConfigGrid" |
66 | | - Padding="32,12" |
| 66 | + Padding="60,12,16,12" |
67 | 67 | ColumnSpacing="16" |
68 | 68 | RowSpacing="12"> |
69 | 69 | <Grid.ColumnDefinitions> |
|
75 | 75 | <Grid.RowDefinitions> |
76 | 76 | <RowDefinition Height="*" /> |
77 | 77 | <RowDefinition Height="*" /> |
78 | | - <RowDefinition Height="Auto" /> |
79 | 78 | </Grid.RowDefinitions> |
80 | 79 |
|
81 | | - |
82 | 80 | <!-- IDE Friendly Name --> |
83 | 81 | <TextBlock |
84 | 82 | x:Name="IDEFriendlyName" |
|
111 | 109 | x:Name="InvalidFriendlyNameWarning" |
112 | 110 | Title="{helpers:ResourceString Name=InvalidFriendlyNameError}" |
113 | 111 | IsOpen="{x:Bind ViewModel.IsFriendlyNameValid, Converter={StaticResource BoolNegationConverter}, Mode=OneWay}" |
114 | | - PreferredPlacement="BottomRight" |
| 112 | + PreferredPlacement="BottomLeft" |
115 | 113 | Target="{x:Bind IDEFriendlyNameTextBox}" /> |
116 | 114 | </TextBox.Resources> |
117 | 115 | <TextBox.Header> |
118 | | - <TextBlock Text="{helpers:ResourceString Name=FriendlyName}" TextTrimming="CharacterEllipsis" /> |
| 116 | + <TextBlock Text="{helpers:ResourceString Name=FriendlyName}" /> |
119 | 117 | </TextBox.Header> |
120 | 118 | </TextBox> |
121 | 119 |
|
|
169 | 167 | <SolidColorBrush x:Key="TextControlBackgroundFocused" Color="{ThemeResource SolidBackgroundFillColorSecondary}" /> |
170 | 168 | </TextBox.Resources> |
171 | 169 | <TextBox.Header> |
172 | | - <TextBlock Text="{helpers:ResourceString Name=PathOrAlias}" TextTrimming="CharacterEllipsis" /> |
| 170 | + <TextBlock Text="{helpers:ResourceString Name=PathOrAlias}" /> |
173 | 171 | </TextBox.Header> |
174 | 172 | </TextBox> |
175 | 173 |
|
176 | | - <Button |
| 174 | + <SplitButton |
177 | 175 | x:Name="PickIDEExe" |
178 | 176 | Grid.Column="1" |
179 | 177 | VerticalAlignment="Bottom" |
180 | 178 | Command="{x:Bind ViewModel.OpenFilePickerForIDECommand, Mode=OneWay}" |
181 | | - Content="{helpers:ResourceString Name=Browse}" /> |
| 179 | + Content="{helpers:ResourceString Name=Browse}"> |
| 180 | + <SplitButton.Flyout> |
| 181 | + <MenuFlyout Placement="Bottom"> |
| 182 | + <!-- Test Integration --> |
| 183 | + <MenuFlyoutItem |
| 184 | + x:Name="TestIDE" |
| 185 | + Command="{x:Bind ViewModel.TestIDECommand, Mode=OneWay}" |
| 186 | + IsEnabled="{x:Bind ViewModel.IsIDEPathValid, Mode=OneWay}" |
| 187 | + Text="{helpers:ResourceString Name=TestIntegration}" /> |
| 188 | + </MenuFlyout> |
| 189 | + </SplitButton.Flyout> |
| 190 | + </SplitButton> |
182 | 191 |
|
183 | 192 | <Grid |
184 | 193 | x:Name="InvalidPathWarning" |
185 | | - Grid.Row="1" |
186 | 194 | Grid.Column="2" |
187 | 195 | Padding="12,6" |
188 | 196 | VerticalAlignment="Bottom" |
|
224 | 232 | <!-- Edit --> |
225 | 233 | <Button |
226 | 234 | x:Name="EditIDEConfigButton" |
227 | | - Grid.RowSpan="3" |
| 235 | + Grid.RowSpan="2" |
228 | 236 | Grid.Column="2" |
229 | 237 | Padding="8,4" |
| 238 | + VerticalAlignment="Center" |
230 | 239 | Background="Transparent" |
231 | 240 | BorderBrush="Transparent" |
232 | 241 | Command="{x:Bind ViewModel.StartEditingIDECommand, Mode=OneWay}" |
|
236 | 245 |
|
237 | 246 | <StackPanel |
238 | 247 | x:Name="SaveAndEditButtons" |
239 | | - Padding="32,0,32,12" |
| 248 | + Padding="60,0,16,12" |
240 | 249 | HorizontalAlignment="Right" |
241 | 250 | x:Load="{x:Bind ViewModel.IsEditingIDEConfig, Mode=OneWay}" |
242 | 251 | Orientation="Horizontal" |
243 | 252 | Spacing="8"> |
244 | 253 | <!-- Cancel --> |
245 | 254 | <Button Command="{x:Bind ViewModel.CancelIDEChangesCommand, Mode=OneWay}" Content="{helpers:ResourceString Name=Cancel}" /> |
246 | 255 |
|
247 | | - <!-- Test Integration --> |
248 | | - <Button |
249 | | - x:Name="TestIDE" |
250 | | - Command="{x:Bind ViewModel.TestIDECommand, Mode=OneWay}" |
251 | | - Content="{helpers:ResourceString Name=TestIntegration}" /> |
252 | | - |
253 | 256 | <!-- Save Changes --> |
254 | 257 | <Button |
255 | 258 | Command="{x:Bind ViewModel.SaveIDEChangesCommand, Mode=OneWay}" |
|
304 | 307 | <Setter Target="InvalidPathWarning.VerticalAlignment" Value="Bottom" /> |
305 | 308 | <Setter Target="IDEPathGrid.RowSpacing" Value="0" /> |
306 | 309 | <Setter Target="IDEPathGrid.ColumnSpacing" Value="8" /> |
307 | | - <Setter Target="InvalidFriendlyNameWarning.PreferredPlacement" Value="BottomRight" /> |
308 | 310 | </VisualState.Setters> |
309 | 311 | </VisualState> |
310 | 312 | <VisualState x:Name="CompactState"> |
|
322 | 324 | <Setter Target="InvalidPathWarning.VerticalAlignment" Value="Stretch" /> |
323 | 325 | <Setter Target="IDEPathGrid.RowSpacing" Value="12" /> |
324 | 326 | <Setter Target="IDEPathGrid.ColumnSpacing" Value="0" /> |
325 | | - <Setter Target="InvalidFriendlyNameWarning.PreferredPlacement" Value="Bottom" /> |
326 | 327 | </VisualState.Setters> |
327 | 328 | </VisualState> |
328 | 329 | </VisualStateGroup> |
|
0 commit comments