【发布时间】:2019-11-23 03:21:37
【问题描述】:
这是我的 .xaml 文件的内容:
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:d="http://xamarin.com/schemas/2014/forms/design"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
x:Class="App1.MainPage">
<StackLayout>
<Label Text="HelloWorld"></Label>
<Image Source="https://placehold.it/100"></Image>
</StackLayout>
</ContentPage>
看起来是这样的:
这是我的项目设置:
我没有mac,看看iOS是否存在问题。
【问题讨论】:
-
@FreakyAli 这并不能解释我的问题是什么。
-
这是 Xamarin.Forms 图像控件的一个已知问题,它不能很好地与 URL 一起使用,您可能还需要考虑您的图像本身没有公共访问权限或私有托管的事实