如何在wpf中保留一些可以在整个应用程序中使用的对象? [英] How do I preserve some objects that can I use all over the application in wpf ?

查看:51
本文介绍了如何在wpf中保留一些可以在整个应用程序中使用的对象?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在wpf中保留一些可以在整个应用程序中使用的对象?

How do I preserve some objects that can I use all over the application in wpf ?

推荐答案

将这些值简单地存储在类的静态变量中并使用它无论何时需要。
Simple store those values in static variables of the class and use it whereever required.


这篇关于如何在wpf中保留一些可以在整个应用程序中使用的对象?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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