我有一个Xamarin.Form应用程序,我正在使用一个带有models的ASP.Net Web WebAPI,以便在我的内部模型中进行验证。如果我收到一个“坏请求”,我的API返回这个JSON对象:
{
message: 'The request is invalid.',
modelState: {
model.**Name**: [
"The name is empty"
]
}
}
因此,我想简化我在UI中的工作以读取结果,我的问题是:如何使用这个对象来显示UI中的错误?
我正在尝试使用xamarin.form实现一个loginview。我已经在我的项目中实现了以下代码,但是,一旦我运行,它就不会在视图上显示任何内容。
using System;
using System.Collections.Generic;
using Xamarin.Forms;
namespace WebComponents
{
public partial class LoginView : ContentPage
{
public LoginView ()
{
InitializeComponen
我是Xamarin平台的新手,并且面临着错误。
Build action 'EmbeddedResource' is not supported by one or more of the project's targets.正在emulator 8.1 for windows phone中调试,我的项目是一个Xamarin.form(portable)。