页面跳转 private void Button_Click_1(object sender,RoutedEventArgs e) { //一种方式 HtmlWindow html = HtmlPage.Window; html.Navigate(new Uri("../WebForm1.aspx",UriKind.RelativeOrAbsolute)); //二种方式 this.Content = new SilverlightControl1(); }页面传值//定义独立的存储对象 private IsolatedStorageSettings appSetting = IsolatedStorageSettings.ApplicationSettings; private void button1_Click(object sender,RoutedEventArgs e) { if (txtName.Text != null && txtPwd.Text != null) { if (txtName.Text == "rainie" && txtPwd.Text == "123") { //页面传值 if (!appSetting.Contains("name")) { appSetting.Add("name",txtName.Text.Trim()); } else { appSetting.Clear(); appSetting.Add("name",txtName.Text.Trim()); } } } }
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。