/// <summary> /// Gets the text. /// </summary> /// <param name="element">The object.</param> /// <returns>The value.</returns> public static string GetText(MediaElement element) => element?.GetValue(TextProperty) as string;
/// <summary> /// Gets the text foreground. /// </summary> /// <param name="obj">The object.</param> /// <returns>The value</returns> public static Brush GetForeground(MediaElement obj) { return(obj.GetValue(ForegroundProperty) as Brush); }
/// <summary> /// Gets the effect. /// </summary> /// <param name="obj">The object.</param> /// <returns>The value</returns> public static Effect GetEffect(MediaElement obj) { return(obj.GetValue(EffectProperty) as Effect); }
/// <summary> /// Gets the font weight. /// </summary> /// <param name="obj">The object.</param> /// <returns>The value</returns> public static FontWeight GetFontWeight(MediaElement obj) { return((FontWeight)obj.GetValue(FontWeightProperty)); }
/// <summary> /// Gets the font family. /// </summary> /// <param name="obj">The object.</param> /// <returns>The value</returns> public static FontFamily GetFontFamily(MediaElement obj) { return(obj.GetValue(FontFamilyProperty) as FontFamily); }
/// <summary> /// Gets the outline brush. /// </summary> /// <param name="obj">The object.</param> /// <returns>The value.</returns> public static Brush GetOutlineBrush(MediaElement obj) { return(obj.GetValue(OutlineBrushProperty) as Brush); }
/// <summary> /// Gets the size of the font. /// </summary> /// <param name="obj">The object.</param> /// <returns>The value</returns> public static double GetFontSize(MediaElement obj) { return((double)obj.GetValue(FontSizeProperty)); }
/// <summary> /// Gets the font family. /// </summary> /// <param name="element">The object.</param> /// <returns>The value.</returns> public static FontFamily GetFontFamily(MediaElement element) => element?.GetValue(FontFamilyProperty) as FontFamily;
/// <summary> /// Gets the width of the outline. /// </summary> /// <param name="obj">The object.</param> /// <returns>The value.</returns> public static Thickness GetOutlineWidth(MediaElement obj) { return((Thickness)obj.GetValue(OutlineWidthProperty)); }
/// <summary> /// Gets the size of the font. /// </summary> /// <param name="element">The object.</param> /// <returns>The value.</returns> public static double GetFontSize(MediaElement element) => (double)(element?.GetValue(FontSizeProperty) ?? default(double));
/// <summary> /// Gets the font weight. /// </summary> /// <param name="element">The object.</param> /// <returns>The value.</returns> public static FontWeight GetFontWeight(MediaElement element) => (FontWeight)(element?.GetValue(FontWeightProperty) ?? FontWeights.Normal);
/// <summary> /// Gets the outline brush. /// </summary> /// <param name="element">The object.</param> /// <returns>The value.</returns> public static Brush GetOutlineBrush(MediaElement element) => element?.GetValue(OutlineBrushProperty) as Brush;
/// <summary> /// Gets the width of the outline. /// </summary> /// <param name="element">The object.</param> /// <returns>The value.</returns> public static Thickness GetOutlineWidth(MediaElement element) => (Thickness)(element?.GetValue(OutlineWidthProperty) ?? default(Thickness));
/// <summary> /// Gets the effect. /// </summary> /// <param name="element">The object.</param> /// <returns>The value.</returns> public static Effect GetEffect(MediaElement element) => element?.GetValue(EffectProperty) as Effect;
/// <summary> /// Gets the text foreground. /// </summary> /// <param name="element">The object.</param> /// <returns>The value.</returns> public static Brush GetForeground(MediaElement element) => element?.GetValue(ForegroundProperty) as Brush;
/// <summary> /// Gets the text. /// </summary> /// <param name="obj">The object.</param> /// <returns>The value</returns> public static string GetText(MediaElement obj) { return(obj.GetValue(TextProperty) as string); }