I'm trying to save a variable to persistent storage (as described here) but the complier doesn't recognise the 'Current' member of 'Application' class. I'm trying this:
Application.Current.Properties["id"] = id;
but VS2015 assumes that 'application' is an instance of the 'Application' class, not the class itself. (the error given is: 'application' does not contain a definition for 'Current').
The instance is defined in a library module:
public Application Application { get; }
I've tried GetType() and MethodBase.GetCurrentMethod() without success. Sorry if this is basic c# knowledge that I've forgotten.