/// <summary> /// Gibt den aktuellen Wert der DependencyProperty EmailText zurück. /// </summary> /// <param name="attachedTextBlock">Der TextBlock, der als Email-TextBlock dient.</param> /// <returns>Den Inhalt der Eigenschaft als String.</returns> public static string GetEmailText(TextBlock attachedTextBlock) { if (attachedTextBlock != null) return attachedTextBlock.GetValue(EmailTextProperty) as string; return string.Empty; }
public static string GetWikiText(TextBlock wb) { return wb.GetValue(WikiTextProperty) as string; }
public static string GetText(TextBlock element) { return (string)element.GetValue(TextProperty); }
public static string GetText(TextBlock element) { if (element != null) { return element.GetValue(ArticleContentProperty) as string; } return string.Empty; }
public static Brush GetHighlightBrush(TextBlock element) { return (Brush)element.GetValue(HighlightBrushProperty); }