我刚刚开始开发 Xamarin 但遇到了一个问题我有一个登录屏幕,我想在那里播放 gif,但不幸的是没有图像出现
适用于 png 和 jpeg 文件
我的代码如下;
Content = new StackLayout
{
Padding = new Thickness(10, 40, 10, 10),
Children = {
new Label { Text = "Versiyon:"+DependencyService.Get<INativeCall>().getApplicationVersion(), FontSize = Device.GetNamedSize(NamedSize.Large, typeof(Label)), TextColor = Color.White, HorizontalTextAlignment=TextAlignment.Center },
new Image { Source = "a.gif" },
username,
password,
btnLogin,
indicator,
infoServer,
infoUpdate
}
};
Run Code Online (Sandbox Code Playgroud)