0

Since the Windows phone form is not modal, how can i get the value of the selected color which is set at the ColorPicker.xaml ?

    Dim FirstBand As Res.Color
    Dim SecondBand As Res.Color

       Private Sub TextBlock_Tap(sender As Object, e As GestureEventArgs)
            NavigationService.Navigate(New Uri("/ColorPicker.xaml", UriKind.Relative))
            FirstBand = ColorPicker.SelectedColor
            txtFisrt.Text = FirstBand.ToString
        End Sub

        Private Sub TextBlock1_Tap(sender As Object, e As GestureEventArgs)
            NavigationService.Navigate(New Uri("/ColorPicker.xaml", UriKind.Relative))
            SecondBand = ColorPicker.SelectedColor
            txtSecond.Text = SecondBand.ToString
        End Sub
OrElse
  • 9,709
  • 39
  • 140
  • 253
  • 1
    You can read more about [passing data between Pages here](http://stackoverflow.com/q/4953491/2681948). – Romasz Apr 13 '14 at 08:20

1 Answers1

0

You can either use the url or set some static values in a Static class or in App class.

csharpwinphonexaml
  • 3,659
  • 10
  • 32
  • 63