Reducing this question to the bare minimum, consider this MarkupExtension class...
public class ProblemStatement : MarkupExtension
{
private readonly string
Try this out:
public string Optional{ get; set; } = "DefaultValue";
private readonly string _mandatory;
public ProblemStatement(string mandatory)
{
_mandatory = mandatory;
}
Usage:
Alternative:
Result: