public static string GetText(DependencyObject element) { return (string)element.GetValue(TextProperty); }