Bengi Besceli
Bengi Besceli

Reputation: 3748

Styling StackLayout

How can I make this work ? My aim is to make a div that fulfills the screen, I'm searching the simpliest and proper way for it, but this does not work.

<StackLayout VerticalOptions="FillAndExpand" Background="Red">
  <Button Text="Button Title"></Button>
</StackLayout>

Thank you.

Upvotes: 0

Views: 334

Answers (1)

Ed S
Ed S

Reputation: 140

The attribute should be BackgroundColor.

    <StackLayout VerticalOptions="FillAndExpand" BackgroundColor="Red">
      <Button Text="Button Title"></Button>
    </StackLayout>

Upvotes: 1

Related Questions