Method ExtWpf.TextOrNull Overload Gets the Text property. Returns null if it is "". public static string TextOrNull(this TextBox t) Parameters t (TextBox) Returns string