Skip to content

Commit

Permalink
Add colors
Browse files Browse the repository at this point in the history
  • Loading branch information
jknaudt21 committed Sep 25, 2023
1 parent 519ba60 commit 45d5096
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,12 @@ public async Task ShouldGrow()
{
var label = new Label() { Text = "Text inside a ScrollView"};
var childLayout = new VerticalStackLayout { label };
var scrollView = new ScrollView() { VerticalOptions = LayoutOptions.Fill, Content = childLayout };
var scrollView = new ScrollView() { VerticalOptions = LayoutOptions.Fill, Content = childLayout , Background = Brush.Red };
var parentLayout = new Grid { scrollView };

parentLayout.Background = Brush.Yellow;
childLayout.Background = Brush.AliceBlue;

var expectedHeight = 100;
parentLayout.HeightRequest = expectedHeight;

Expand Down

0 comments on commit 45d5096

Please sign in to comment.