最后我用下面的代码解决了问题。
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="Your.Namespace.Views.LoginView"
Title="{Binding Title}"
BackgroundImage="BackgroundImage.png">
<StackLayout>
<!-- Your stuff goes here -->
</StackLayout>
</ContentPage>
我已使用上述代码将背景图像设置为适合屏幕的...。
BackgroundImage="BackgroundImage.png"
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句