How can I save global application variables in WPF?

前端 未结 4 1074
既然无缘
既然无缘 2020-12-31 13:52

In WPF, where can I save a value when in one UserControl, then later in another UserControl access that value again, something like session

4条回答
  •  余生分开走
    2020-12-31 14:12

    Could just store it yourself in a static class or repository that you can inject to the classes that need the data.

提交回复
热议问题