-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[Testing] Feature matrix UITest Cases for ScrollView with LayoutOptions #31650
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Binary file added
BIN
+47.2 KB
...es.Android.Tests/snapshots/android/VerifyGridLayout_HorizontalOptionsCenter.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+47.3 KB
.../snapshots/android/VerifyGridLayout_HorizontalOptionsCenterWithWidthRequest.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+47.2 KB
...Cases.Android.Tests/snapshots/android/VerifyGridLayout_HorizontalOptionsEnd.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+47.3 KB
...sts/snapshots/android/VerifyGridLayout_HorizontalOptionsEndWithWidthRequest.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+47.2 KB
...ases.Android.Tests/snapshots/android/VerifyGridLayout_HorizontalOptionsFill.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+47.3 KB
...ts/snapshots/android/VerifyGridLayout_HorizontalOptionsFillWithWidthRequest.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+47.1 KB
...ses.Android.Tests/snapshots/android/VerifyGridLayout_HorizontalOptionsStart.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+47.2 KB
...s/snapshots/android/VerifyGridLayout_HorizontalOptionsStartWithWidthRequest.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+47.8 KB
...ases.Android.Tests/snapshots/android/VerifyGridLayout_VerticalOptionsCenter.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+47.8 KB
...s/snapshots/android/VerifyGridLayout_VerticalOptionsCenterWithHeightRequest.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+46.8 KB
...stCases.Android.Tests/snapshots/android/VerifyGridLayout_VerticalOptionsEnd.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+47.8 KB
...ests/snapshots/android/VerifyGridLayout_VerticalOptionsEndWithHeightRequest.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+47.2 KB
...tCases.Android.Tests/snapshots/android/VerifyGridLayout_VerticalOptionsFill.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+47.4 KB
...sts/snapshots/android/VerifyGridLayout_VerticalOptionsFillWithHeightRequest.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+47.2 KB
...Cases.Android.Tests/snapshots/android/VerifyGridLayout_VerticalOptionsStart.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+47.4 KB
...ts/snapshots/android/VerifyGridLayout_VerticalOptionsStartWithHeightRequest.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+38 KB
...shots/android/VerifyLayoutWithOrientationHorizontal_HorizontalOptionsCenter.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+38.1 KB
...rifyLayoutWithOrientationHorizontal_HorizontalOptionsCenterWithWidthRequest.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+38 KB
...napshots/android/VerifyLayoutWithOrientationHorizontal_HorizontalOptionsEnd.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+38 KB
.../VerifyLayoutWithOrientationHorizontal_HorizontalOptionsEndWithWidthRequest.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+38 KB
...apshots/android/VerifyLayoutWithOrientationHorizontal_HorizontalOptionsFill.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+38 KB
...VerifyLayoutWithOrientationHorizontal_HorizontalOptionsFillWithWidthRequest.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+38 KB
...pshots/android/VerifyLayoutWithOrientationHorizontal_HorizontalOptionsStart.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+38 KB
...erifyLayoutWithOrientationHorizontal_HorizontalOptionsStartWithWidthRequest.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+38 KB
...apshots/android/VerifyLayoutWithOrientationHorizontal_VerticalOptionsCenter.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+38 KB
...erifyLayoutWithOrientationHorizontal_VerticalOptionsCenterWithHeightRequest.png
Oops, something went wrong.
Binary file added
BIN
+37.1 KB
.../snapshots/android/VerifyLayoutWithOrientationHorizontal_VerticalOptionsEnd.png
Oops, something went wrong.
Binary file added
BIN
+38 KB
...d/VerifyLayoutWithOrientationHorizontal_VerticalOptionsEndWithHeightRequest.png
Oops, something went wrong.
Binary file added
BIN
+38 KB
...snapshots/android/VerifyLayoutWithOrientationHorizontal_VerticalOptionsFill.png
Oops, something went wrong.
Binary file added
BIN
+38 KB
.../VerifyLayoutWithOrientationHorizontal_VerticalOptionsFillWithHeightRequest.png
Oops, something went wrong.
Binary file added
BIN
+37.9 KB
...napshots/android/VerifyLayoutWithOrientationHorizontal_VerticalOptionsStart.png
Oops, something went wrong.
Binary file added
BIN
+37.9 KB
...VerifyLayoutWithOrientationHorizontal_VerticalOptionsStartWithHeightRequest.png
Oops, something went wrong.
Binary file added
BIN
+40.7 KB
...apshots/android/VerifyLayoutWithOrientationVertical_HorizontalOptionsCenter.png
Oops, something went wrong.
Binary file added
BIN
+40.8 KB
...VerifyLayoutWithOrientationVertical_HorizontalOptionsCenterWithWidthRequest.png
Oops, something went wrong.
Binary file added
BIN
+40.6 KB
.../snapshots/android/VerifyLayoutWithOrientationVertical_HorizontalOptionsEnd.png
Oops, something went wrong.
Binary file added
BIN
+40.8 KB
...id/VerifyLayoutWithOrientationVertical_HorizontalOptionsEndWithWidthRequest.png
Oops, something went wrong.
Binary file added
BIN
+40.6 KB
...snapshots/android/VerifyLayoutWithOrientationVertical_HorizontalOptionsFill.png
Oops, something went wrong.
Binary file added
BIN
+40.7 KB
...d/VerifyLayoutWithOrientationVertical_HorizontalOptionsFillWithWidthRequest.png
Oops, something went wrong.
Binary file added
BIN
+40.5 KB
...napshots/android/VerifyLayoutWithOrientationVertical_HorizontalOptionsStart.png
Oops, something went wrong.
Binary file added
BIN
+40.7 KB
.../VerifyLayoutWithOrientationVertical_HorizontalOptionsStartWithWidthRequest.png
Oops, something went wrong.
Binary file added
BIN
+40.6 KB
...snapshots/android/VerifyLayoutWithOrientationVertical_VerticalOptionsCenter.png
Oops, something went wrong.
Binary file added
BIN
+40.6 KB
.../VerifyLayoutWithOrientationVertical_VerticalOptionsCenterWithHeightRequest.png
Oops, something went wrong.
Binary file added
BIN
+40.2 KB
...ts/snapshots/android/VerifyLayoutWithOrientationVertical_VerticalOptionsEnd.png
Oops, something went wrong.
Binary file added
BIN
+40.6 KB
...oid/VerifyLayoutWithOrientationVertical_VerticalOptionsEndWithHeightRequest.png
Oops, something went wrong.
Binary file added
BIN
+40.6 KB
...s/snapshots/android/VerifyLayoutWithOrientationVertical_VerticalOptionsFill.png
Oops, something went wrong.
Binary file added
BIN
+40.6 KB
...id/VerifyLayoutWithOrientationVertical_VerticalOptionsFillWithHeightRequest.png
Oops, something went wrong.
Binary file added
BIN
+40.6 KB
.../snapshots/android/VerifyLayoutWithOrientationVertical_VerticalOptionsStart.png
Oops, something went wrong.
Binary file added
BIN
+40.6 KB
...d/VerifyLayoutWithOrientationVertical_VerticalOptionsStartWithHeightRequest.png
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
.../tests/TestCases.HostApp/FeatureMatrix/ScrollViewWithLayoutOptions/LayoutControlPage.xaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | ||
xmlns:local="clr-namespace:Maui.Controls.Sample" | ||
x:Class="Maui.Controls.Sample.LayoutMainPage" | ||
x:DataType="local:LayoutViewModel" | ||
Title="LayoutPage"> | ||
<ContentPage.ToolbarItems> | ||
<ToolbarItem Text="Options" | ||
Clicked="NavigateToOptionsPage_Clicked" | ||
AutomationId="Options"/> | ||
</ContentPage.ToolbarItems> | ||
<Grid RowDefinitions="*,Auto" | ||
ColumnDefinitions="*,*" | ||
Padding="0,10" | ||
RowSpacing="10" | ||
ColumnSpacing="3"> | ||
|
||
<ScrollView Grid.Row="0" | ||
Grid.ColumnSpan="2" | ||
x:Name="MyScrollView" | ||
HeightRequest="{Binding HeightRequest}" | ||
WidthRequest="{Binding WidthRequest}" | ||
Orientation="{Binding Orientation}" | ||
HorizontalScrollBarVisibility="Never" | ||
VerticalScrollBarVisibility="Never" | ||
BackgroundColor="Lavender"/> | ||
<Button Text="StackLayout" | ||
Grid.Row="1" | ||
Grid.Column="0" | ||
Clicked="OnScrollViewWithStackLayoutClicked" | ||
AutomationId="StackLayoutButton" | ||
WidthRequest="200"/> | ||
<Button Text="Grid" | ||
Grid.Row="1" | ||
Grid.Column="1" | ||
Clicked="OnGridWithChildrenClicked" | ||
AutomationId="GridButton" | ||
WidthRequest="200"/> | ||
</Grid> | ||
</ContentPage> |
127 changes: 127 additions & 0 deletions
127
...sts/TestCases.HostApp/FeatureMatrix/ScrollViewWithLayoutOptions/LayoutControlPage.xaml.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,127 @@ | ||
using System; | ||
using Microsoft.Maui.Controls; | ||
|
||
namespace Maui.Controls.Sample; | ||
|
||
public class LayoutControlPage : NavigationPage | ||
{ | ||
private LayoutViewModel _viewModel; | ||
public LayoutControlPage() | ||
{ | ||
_viewModel = new LayoutViewModel(); | ||
|
||
PushAsync(new LayoutMainPage(_viewModel)); | ||
} | ||
} | ||
|
||
public partial class LayoutMainPage : ContentPage | ||
{ | ||
private LayoutViewModel _viewModel; | ||
|
||
public LayoutMainPage(LayoutViewModel viewModel) | ||
{ | ||
InitializeComponent(); | ||
_viewModel = viewModel; | ||
BindingContext = _viewModel; | ||
InitializeContent(); | ||
} | ||
protected override void OnAppearing() | ||
{ | ||
base.OnAppearing(); | ||
InitializeContent(); | ||
} | ||
|
||
private void InitializeContent() | ||
{ | ||
var defaultLayout = new VerticalStackLayout | ||
{ | ||
BackgroundColor = Colors.LightGray, | ||
Children = | ||
{ | ||
new Label { Text = "Welcome to LayoutPage" }, | ||
} | ||
}; | ||
|
||
MyScrollView.Content = defaultLayout; | ||
} | ||
|
||
private async void NavigateToOptionsPage_Clicked(object sender, EventArgs e) | ||
{ | ||
BindingContext = _viewModel = new LayoutViewModel(); | ||
await Navigation.PushAsync(new LayoutOptionsPage(_viewModel)); | ||
} | ||
|
||
private void OnScrollViewWithStackLayoutClicked(object sender, EventArgs e) | ||
{ | ||
Layout layout; | ||
|
||
if (_viewModel.Orientation == ScrollOrientation.Horizontal) | ||
{ | ||
layout = new HorizontalStackLayout | ||
{ | ||
HorizontalOptions = _viewModel.HorizontalOptions, | ||
VerticalOptions = _viewModel.VerticalOptions, | ||
BackgroundColor = Colors.LightGray, | ||
Spacing = 10, | ||
Children = | ||
{ | ||
new Label { Text = "StackLayout", VerticalOptions = LayoutOptions.Center }, | ||
new Button { Text = "Button1", VerticalOptions = LayoutOptions.Center }, | ||
new Button { Text = "Button2", VerticalOptions = LayoutOptions.Center } | ||
} | ||
}; | ||
} | ||
else | ||
{ | ||
layout = new VerticalStackLayout | ||
{ | ||
HorizontalOptions = _viewModel.HorizontalOptions, | ||
VerticalOptions = _viewModel.VerticalOptions, | ||
BackgroundColor = Colors.LightGray, | ||
Spacing = 10, | ||
Children = | ||
{ | ||
new Label { Text = "StackLayout", HorizontalOptions = LayoutOptions.Center }, | ||
new Button { Text = "Button1", HorizontalOptions = LayoutOptions.Center }, | ||
new Button { Text = "Button2", HorizontalOptions = LayoutOptions.Center } | ||
} | ||
}; | ||
} | ||
|
||
MyScrollView.Content = layout; | ||
} | ||
|
||
private void OnGridWithChildrenClicked(object sender, EventArgs e) | ||
{ | ||
var grid = new Grid | ||
{ | ||
Padding = 15, | ||
BackgroundColor = Colors.LightGray, | ||
HorizontalOptions = _viewModel.HorizontalOptions, | ||
VerticalOptions = _viewModel.VerticalOptions, | ||
RowSpacing = 10, | ||
ColumnSpacing = 10 | ||
}; | ||
|
||
grid.ColumnDefinitions.Add(new ColumnDefinition { Width = GridLength.Star }); | ||
grid.ColumnDefinitions.Add(new ColumnDefinition { Width = GridLength.Star }); | ||
grid.ColumnDefinitions.Add(new ColumnDefinition { Width = GridLength.Star }); | ||
|
||
grid.RowDefinitions.Add(new RowDefinition { Height = GridLength.Auto }); | ||
grid.RowDefinitions.Add(new RowDefinition { Height = GridLength.Auto }); | ||
|
||
var button1 = new Button { Text = "Button 1", BackgroundColor = Colors.Orange, TextColor = Colors.White }; | ||
var button2 = new Button { Text = "Button 2", BackgroundColor = Colors.Blue, TextColor = Colors.White }; | ||
var button3 = new Button { Text = "Button 3", BackgroundColor = Colors.Green, TextColor = Colors.White }; | ||
var button4 = new Button { Text = "Button 4", BackgroundColor = Colors.Red, TextColor = Colors.White }; | ||
var button5 = new Button { Text = "Button 5", BackgroundColor = Colors.Purple, TextColor = Colors.White }; | ||
var button6 = new Button { Text = "Button 6", BackgroundColor = Colors.Brown, TextColor = Colors.White }; | ||
grid.Add(button1, 0, 0); | ||
grid.Add(button2, 1, 0); | ||
grid.Add(button3, 2, 0); | ||
grid.Add(button4, 0, 1); | ||
grid.Add(button5, 1, 1); | ||
grid.Add(button6, 2, 1); | ||
MyScrollView.Content = grid; | ||
} | ||
} |
147 changes: 147 additions & 0 deletions
147
.../tests/TestCases.HostApp/FeatureMatrix/ScrollViewWithLayoutOptions/LayoutOptionsPage.xaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,147 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | ||
x:Class="Maui.Controls.Sample.LayoutOptionsPage" | ||
Title="LayoutOptionsPage"> | ||
<ContentPage.ToolbarItems> | ||
<ToolbarItem Text="Apply" | ||
Clicked="ApplyButton_Clicked" | ||
AutomationId="Apply"/> | ||
</ContentPage.ToolbarItems> | ||
|
||
<Grid Padding="10" | ||
RowSpacing="10" | ||
ColumnSpacing="10"> | ||
<Grid.RowDefinitions> | ||
<RowDefinition Height="Auto"/> | ||
<RowDefinition Height="Auto"/> | ||
<RowDefinition Height="Auto"/> | ||
<RowDefinition Height="Auto"/> | ||
<RowDefinition Height="Auto"/> | ||
<RowDefinition Height="Auto"/> | ||
<RowDefinition Height="Auto"/> | ||
<RowDefinition Height="Auto"/> | ||
<RowDefinition Height="Auto"/> | ||
<RowDefinition Height="Auto"/> | ||
<RowDefinition Height="Auto"/> | ||
<RowDefinition Height="Auto"/> | ||
<RowDefinition Height="Auto"/> | ||
</Grid.RowDefinitions> | ||
<Grid.ColumnDefinitions> | ||
<ColumnDefinition Width="*"/> | ||
<ColumnDefinition Width="*"/> | ||
</Grid.ColumnDefinitions> | ||
|
||
<!-- Horizontal Options Label --> | ||
<Label Grid.Row="0" | ||
Grid.ColumnSpan="2" | ||
Text="HorizontalOptions:" | ||
FontAttributes="Bold"/> | ||
|
||
<!-- Horizontal Options Buttons --> | ||
<Button Grid.Row="1" | ||
Grid.Column="0" | ||
Text="Fill" | ||
Clicked="OnHorizontalOptionClicked" | ||
AutomationId="HorizontalFill"/> | ||
<Button Grid.Row="1" | ||
Grid.Column="1" | ||
Text="Start" | ||
Clicked="OnHorizontalOptionClicked" | ||
AutomationId="HorizontalStart"/> | ||
|
||
<Button Grid.Row="2" | ||
Grid.Column="0" | ||
Text="Center" | ||
Clicked="OnHorizontalOptionClicked" | ||
AutomationId="HorizontalCenter"/> | ||
<Button Grid.Row="2" | ||
Grid.Column="1" | ||
Text="End" | ||
Clicked="OnHorizontalOptionClicked" | ||
AutomationId="HorizontalEnd"/> | ||
|
||
<!-- Vertical Options Label --> | ||
<Label Grid.Row="3" | ||
Grid.ColumnSpan="2" | ||
Text="VerticalOptions:" | ||
FontAttributes="Bold"/> | ||
|
||
<!-- Vertical Options Buttons --> | ||
<Button Grid.Row="4" | ||
Grid.Column="0" | ||
Text="Fill" | ||
Clicked="OnVerticalOptionClicked" | ||
AutomationId="VerticalFill"/> | ||
<Button Grid.Row="4" | ||
Grid.Column="1" | ||
Text="Start" | ||
Clicked="OnVerticalOptionClicked" | ||
AutomationId="VerticalStart"/> | ||
|
||
<Button Grid.Row="5" | ||
Grid.Column="0" | ||
Text="Center" | ||
Clicked="OnVerticalOptionClicked" | ||
AutomationId="VerticalCenter"/> | ||
<Button Grid.Row="5" | ||
Grid.Column="1" | ||
Text="End" | ||
Clicked="OnVerticalOptionClicked" | ||
AutomationId="VerticalEnd"/> | ||
|
||
<!-- WidthRequest Label --> | ||
<Label Grid.Row="6" | ||
Grid.ColumnSpan="2" | ||
Text="WidthRequest:" | ||
FontAttributes="Bold"/> | ||
|
||
<!-- WidthRequest Buttons --> | ||
<Button Grid.Row="7" | ||
Grid.Column="0" | ||
Text="No Width" | ||
Clicked="OnWidthRequestClicked" | ||
AutomationId="WidthNone"/> | ||
<Button Grid.Row="7" | ||
Grid.Column="1" | ||
Text="350" | ||
Clicked="OnWidthRequestClicked" | ||
AutomationId="Width350"/> | ||
|
||
<!-- HeightRequest Label --> | ||
<Label Grid.Row="8" | ||
Grid.ColumnSpan="2" | ||
Text="HeightRequest:" | ||
FontAttributes="Bold"/> | ||
|
||
<!-- HeightRequest Buttons --> | ||
<Button Grid.Row="9" | ||
Grid.Column="0" | ||
Text="No Height" | ||
Clicked="OnHeightRequestClicked" | ||
AutomationId="HeightNone"/> | ||
<Button Grid.Row="9" | ||
Grid.Column="1" | ||
Text="300" | ||
Clicked="OnHeightRequestClicked" | ||
AutomationId="Height300"/> | ||
|
||
<!-- Orientation Label --> | ||
<Label Grid.Row="10" | ||
Grid.ColumnSpan="2" | ||
Text="Orientation:" | ||
FontAttributes="Bold"/> | ||
|
||
<!-- Orientation Buttons --> | ||
<Button Grid.Row="11" | ||
Grid.Column="0" | ||
Text="Vertical" | ||
Clicked="OnOrientationClicked" | ||
AutomationId="OrientationVertical"/> | ||
<Button Grid.Row="11" | ||
Grid.Column="1" | ||
Text="Horizontal" | ||
Clicked="OnOrientationClicked" | ||
AutomationId="OrientationHorizontal"/> | ||
</Grid> | ||
</ContentPage> |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Creating a new LayoutViewModel instance here discards any configuration changes made on the options page. The existing _viewModel should be reused to preserve the configured layout options.
Copilot uses AI. Check for mistakes.