private static void setOptionalTextBlockText(TextBlock textBlock, string text)
 {
     textBlock.Text = text;
     textBlock.ShowOnlyIf(!string.IsNullOrEmpty(text));
 }