Pass date between pages

Nov 5, 2013 at 12:42 PM
I want to pass color from ColorPicker (Code4fun controll) to another page.

I pass parameter like this:
     NavigationService.Navigate(new Uri("/GeneratePage.xaml?&foreground=" + qrCodeColorPicker.Color, UriKind.Relative)); 
And I have problem with get value on the Generator Page.
    var colorCode = NavigationContext.QueryString["foreground"];
    Foreground = colorCode;

> Error 1   Cannot implicitly convert type 'string' to 'System.Windows.Media.Color' 
Do you know how can I get value on the second page ?