如何在TextBox中保存用户估算值?在WPF C#中 [英] How to save user imputed value in TextBox? in WPF C#

查看:114
本文介绍了如何在TextBox中保存用户估算值?在WPF C#中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因此,在我的xaml窗口中,我有一个TextBox.用户启动我的应用程序,在其中输入一些值,然后按一个按钮或按Enter键.他关闭了一个应用程序.再次打开它.如何将他的输入保存在WPF的那个TextBox中,并在他下次启动应用程序时再次检索最后输入的值.

So in my xaml window I have a TextBox. User starts my application inputs some values in to it and presses a button or hits Enter. He closes an app. Opens it up again. How to make his inputs be saved in that TextBox in WPF and retrive again the last inputed values when he starts the application next time

推荐答案

您可以使用内置的Settings功能;

http://blogs.msdn.com/b/patrickdanino/archive/2008/07/23/user-settings-in-wpf.aspx [
You can use the inbuilt Settings functionality;

http://blogs.msdn.com/b/patrickdanino/archive/2008/07/23/user-settings-in-wpf.aspx[^]


这篇关于如何在TextBox中保存用户估算值?在WPF C#中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆