/// <summary> Set the text of the TextBlock to be equal to the given text. </summary> public static TextBlock WithText(this TextBlock block, string text) { block.Content.RemoveAll(); block.Add(text); return(block); }