Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to get values through IsolatedStorage?
    primarykey
    data
    text
    <p>Below program is to select metre and centimeter from a picker and they both are concatenated like if metre is 53 and cm is 4 then the result is 53.4. What I want to do is, the final output height(example:53.4), age, gender should be accessed through Page1.xaml(next page). I have many values of this kind which i need to implement in a formula. How to transfer these values through IsolatedStorage in Windows Phone to the next page? Thank you. </p> <pre><code>//Selecting height private void MHSelect_Click(object sender, RoutedEventArgs e) { int mhvalue1 = MHMeterSelector.SelectedItem; int mhvalue2 = MHCentimeterSelector.SelectedItem; if(mhvalue1 == 0) { mhvalue1 = MHMeterSelector.DefaultValue; } MHeight_btn.Content = float.Parse(string.Format("{0}.{1}", mhvalue1.ToString(), mhvalue2.ToString())) + " cm"; //height is selected and concatenated here. mhvalue1 and mhvalue2 are the metre and centimetre values. } //Selecting Age private void MASelect_Click(object sender, RoutedEventArgs e) { int mavalue1 = MAMeterSelector.SelectedItem; if(mavalue1 == 0) { mavalue1 = MAMeterSelector.DefaultValue; } MAge_btn.Content = mavalue1; //Age is selected and mavalue1 is the selected age. } //Selecting Gender private void MGenderListBox_SelectionChanged(object sender, SelectionChangedEventArgs e) { ListBoxItem kbi = ((sender as ListBox).SelectedItem as ListBoxItem); MGender_btn.Content = kbi.Content.ToString(); //kbi is selected and kbi.Content should be transfered to next page } </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload