In WPF, where can I save a value when in one UserControl, then later in another UserControl access that value again, something like session
Something like this should work.
public static class ApplicationState { private static Dictionary _values = new Dictionary(); public static void SetValue(string key, object value) { _values.Add(key, value); } public static T GetValue(string key) { return (T)_values[key]; } }