【发布时间】:2015-11-26 05:54:38
【问题描述】:
*如何在 Xamarin 的 stackLayout 中全屏填充图像? 我无法将图像设置为适合堆栈布局 .XAML 文件代码
<StackLayout Padding="0" BackgroundColor="Yellow">
<Image Source="ic_splash.png" HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand" > </Image>
</StackLayout>
</ContentPage>
【问题讨论】:
-
@chsword 物理键是什么意思?
-
我在 Xamarin 表单中遇到了同样的问题,我正在使用 WebView。
-
只需删除 StackLayout
标签: c# .net xaml xamarin xamarin.android