TextInputLayout 上的 SetError 不可用

SetError on TextInputLayout not available

我正在尝试在 TextInputLayouts 上显示验证消息。我应该能够做到这一点(与原生 android 一样):

TextInputLayout til = (TextInputLayout) findViewById(R.id.text_input_layout);
til.setErrorEnabled(true);
til.setError("You need to enter a name");

但是 xamarin 似乎没有 setError 方法?对于 EditText,setError 可用,但不希望那样。例如:

TextInputLayout txtI_password = FindViewById<TextInputLayout>(Resource.Id.input_layout_password);
txtI_password. ?????

使用:

using Android.Support.Design.Widget;

在 C# 中,属性 setter 是直接访问的,而不是通过函数。

til.ErrorEnabled = true;
til.Error = "You need to enter a name"