/// <summary> /// Sets the notification message background. /// </summary> /// <param name="builder">The builder.</param> /// <param name="backgroundBrush">The background brush.</param> /// <returns>Returns the notification message builder.</returns> public static NotificationMessageBuilder Background( this NotificationMessageBuilder builder, Brush backgroundBrush) { builder.SetBackground(backgroundBrush); return(builder); }
/// <summary> /// Sets the notification message background. /// </summary> /// <param name="builder">The builder.</param> /// <param name="backgroundBrush">The background brush.</param> /// <returns>Returns the notification message builder.</returns> public static NotificationMessageBuilder Background( this NotificationMessageBuilder builder, string backgroundBrush) { var brush = new BrushConverter().ConvertFrom(backgroundBrush) as Brush; builder.SetBackground(brush); return(builder); }