How can I save global application variables in WPF?

前端 未结 4 1061
既然无缘
既然无缘 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:19

    You can expose a public static variable in App.xaml.cs file and then access it anywhere using App class..

提交回复
热议问题