Choosing a theme actually creates a new page, and when you select a color, it goes to the previous page with this value.
Here is how I do it:
private void modelListBox_SelectionChanged(object sender, SelectionChangedEventArgs e) { //if SelectedIndex == -1, do nothing if(modelListBox.SelectedIndex == -1) return; //navigate to the MainPage NavigationService.Navigate(new Uri (String.Format("/views/MainPage.xaml?MakeIndex={0}&ModelIndex={1}", m_nCameraDataIndex, modelListBox.SelectedIndex), UriKind.Relative)); //reset SelectedIndex modelListBox.SelectedIndex = -1; } //end method modelListBox_SelectionChanged
For ddlist, I found this:
http://www.simego.com/Blog/2008/05/combobox-dropdo
source share