是否可以访问部分页眉和页脚的字体和颜色属性,或者我是否需要子类化 Section?我将 UI 更改为全黑,除了部分页眉和页脚外,一切看起来都很棒。
反射 API:
class Login
{
public string Version = "1.2.3";
[Section ("Enter your credentials", "Email and password are required")]
[Entry ("Enter your email address")]
public string email;
[Caption ("Password"), Password ("Enter your password")]
public string password;
[OnTap ("Login")]
[Alignment (UITextAlignment.Center)]
public string Logon;
}
元素 API:
return new RootElement ("Login") {
new Section() {
new StringElement ("Version", "1.2.3")
},
new Section ("Enter your credentials", "Email and password are required") {
new EntryElement("Email", "Enter your email address", "azcoov"),
new EntryElement("Password", "Enter your password", "password", true),
new StringElement("Logon", Login)
}
}