public FormattedString FormattedDescription
{
get
{
return new FormattedString
{
Spans =
{
new Span
{
Text = RoleName,
FontSize = 16,
FontAttributes = FontAttributes.Bold
},
new Span
{
Text = "/ " + ProjectRoleID + "/ "+Part + "/ "+Gender + "/ " + AgeRange
},
}
};
}
set
{
}
}
Run Code Online (Sandbox Code Playgroud)
在上面的代码中,我想在第一行显示RoleName,在第二行显示其他详细信息.
xamarin ×1