This project has moved and is read-only. For the latest updates, please go here.

Change gradient color for ToastPopUp

Jun 23, 2016 at 1:27 PM
Hi. I've got the following C# code to generate a ToastPopUp. I'd like to change the first color (255, 4, 253, 82) to an HTML hex value of #C5CAE9 but couldn't find a way to generate sRGB value:
new ToastPopUp("Batch Process", "Batch changes saved successfully.", NotificationType.Information)
{
    Background = new LinearGradientBrush(Color.FromArgb(255, 4, 253, 82), Color.FromArgb(255, 10, 13, 248), 90),
    BorderBrush = new SolidColorBrush(Color.FromRgb(0, 0, 0)),
    FontColor = new SolidColorBrush(Color.FromArgb(255, 255, 255, 255))
}.Show();
Thank you for your help.
Jun 24, 2016 at 9:22 PM
Edited Jun 24, 2016 at 9:23 PM
I found this web site that does conversion http://hex2rgba.devoth.com/. See if the Argb value below is correct. Thanks for using my control!!
            new ToastPopUp("Batch Process", "Batch changes saved successfully.", NotificationType.Information)
            {
                Background = new LinearGradientBrush(Color.FromArgb(197,202,233,1), Color.FromArgb(255, 10, 13, 248), 90),
                BorderBrush = new SolidColorBrush(Color.FromRgb(0, 0, 0)),
                FontColor = new SolidColorBrush(Color.FromArgb(255, 255, 255, 255))
            }.Show();
Marked as answer by codePlexWorld on 6/24/2016 at 1:31 PM
Jun 24, 2016 at 9:32 PM
Thank you, @accessguru. I searched and searched for a site that would do the conversion to ARGB. This is very useful; and I love your control :)
Jun 24, 2016 at 9:39 PM
If you get a chance, please rate it :)
Jun 24, 2016 at 9:43 PM
Done :)