/// <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;
        }
Ejemplo n.º 2
0
 public static string GetWikiText(TextBlock wb)
 {
     return wb.GetValue(WikiTextProperty) as string;
 }
Ejemplo n.º 3
0
 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;
 }
Ejemplo n.º 5
0
 public static Brush GetHighlightBrush(TextBlock element)
 {
     return (Brush)element.GetValue(HighlightBrushProperty);
 }