我一直在閱讀其他問題和頁面,並看到一些想法,但無法理解它們或使它們像初學者一樣正常工作,所以請和我一起裸照。WP7 - 將頁面複選框值傳遞給其他類
我的例子:
我有這個checkBox1我MainPage.xaml中
<CheckBox Content="Central WC/EC" Height="68" HorizontalAlignment="Left" Margin="106,206,0,0" Name="checkBox1" VerticalAlignment="Top" BorderThickness="0" />
我有anotherpage.xaml.cs其C#中的anotherpage.xaml:
public void Feed(object Sender, DownloadStringCompletedEventArgs e)
{
if (checkBox1.Checked("SE" == (_item.Sector))) ;
{
}
}
如何將mainpage.xaml上的checkBox1的值傳遞給anotherpage.xaml.cs
非常感謝。如果您需要更多信息,請與我們聯繫。
http://stackoverflow.com/questions/4143383/wp7-pass-parameter-to-new-page檢查出來;) – Machinarius 2010-12-14 20:50:05
'Checked'是CheckBox上的事件。你可能想要'IsChecked'屬性來判斷用戶是否選中了該框。 – 2010-12-15 11:55:49