/// <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, IBrush 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 IBrush; builder.SetBackground(brush); return(builder); }