Session in WPF?

后端 未结 4 2055
慢半拍i
慢半拍i 2020-12-06 16:29

In ASP.NET, I can do Session[\"something\"] = something;, and then I can retrieve in another page the value of the session. Is there a Session in WPF that would

4条回答
  •  一生所求
    2020-12-06 17:15

    Try the following:

    System.Windows.Application.Current.Properties["Something"] = Something;
    

    I Used this many times in my project,

提交回复
热议问题