2016-09-28 70 views
0

我该如何做这项工作?我的目标是创建一个满足屏幕的div,我正在为它寻找最简单最合适的方式,但这不起作用。造型StackLayout

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

谢谢。

回答

1

该属性应该是BackgroundColor。

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