What I want: I'm trying to store complex data types in roaming settings. This is how my object looks like:
public abstract class Query
{
[DataMember]
public Cube Cube { get; private set; }
[DataMember]
public List<Filter> Filters { get; private set; }
[DataMember]
public Slicer Slicer { get; set; }
}
What is the problem:
Query q = ...;
RoamingSettings.Values["query"] = q;
is giving an error:
Data type not supported
What I have tried: Storing different members of Query class in different fields of composite settings. But the data members of Query class are again objects of different classes and hence cannot be stored in composite.Values["setting"].
Please refer: windows 8 app roaming storage with custom class. That question was answered by using the composite setting but is not applicable to mine.
How do I proceed?