public partial class App : Application
{
private void OnExit(object sender, ExitEventArgs e)
{
Properties.Settings.Default.save();
}
}
如何解决这个问题?我需要在哪里“注册”我的设置?在设置下方有一个波浪线。
Properties.Settings 可用于您的应用程序。您必须使用 Application 命名空间引用 Properties。
WpfApplication1.Properties.Settings.Default.Save();
WpfApplication1
是你的应用程序的命名空间。