这是我第一次使用Xamarin.Forms,我想知道如何添加图标或图片。我试图查找相关信息,但发现很复杂。
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:hello"
x:Class="hello.MainPage">
<StackLayout >
<Label Text="Hello"
VerticalOptions="Center"
HorizontalOptions="Center"
TextColor="White"
FontSize="30"
FontAttributes="Italic"/>
<Image /> I am trying to add it here
<Icon/> I am trying to add it here
<Label Text="Name"
VerticalOptions="Center"
HorizontalOptions="Center"
TextColor="White"
Font="large"/>
<entry placeholder="Enter your name here"/>
</StackLayout>
</ContentPage>