W
W
wolfak2015-05-30 12:33:53
WPF
wolfak, 2015-05-30 12:33:53

How to save data (Sessions, roamingSettings or similar) in C# WPF?

Good afternoon. Faced another problem.
Previously used roamingSettings and WinJS.Application.sessionState to save the values ​​of variables throughout the work or life of the program, developing applications in JS. In PHP, these are sessions and cookies.
How to implement this in WPF? I found information on the Internet only about development under WIndows 8 (RT).
Thank you very much for another help.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Artyom, 2015-05-30
@wolfak

Use static class or singleton.
PS
In general, for development under WPF, I would recommend looking at what MVVM, IoC, DI, Singlton are and how to do it all in C #.

S
Sergey, 2015-06-01
@renoize

You can use Properties.Settings to store values.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question