Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在 C# Metro 风格应用程序中保存和恢复滑块的状态?在 Metro 风格应用程序中,当应用程序进入休眠状态时,滑块需要保存其状态。保存滑块状态的 C# 代码是什么?恢复滑块状态的 C# 代码是什么?
您需要处理Suspending和Resuming事件。当您的应用程序处于挂起状态时保存您的数据,并在触发恢复事件时设置它。