如果我使用它将从
private void btnGeneral_Click(object sender, RoutedEventArgs e)
{
string myText = (string)Application.Current.Properties[textBox1.Text];
}
答案 0 :(得分:1)
你是怎么做到的:
//To Set:
App.Current.Properties["TextBoxString"] = textBox1.Text;
//To Get:
string myProperty = (string) App.Current.Properties["TextBoxString"];