What i want . I am trying to store complex data types in roaming settings. This is what 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;
gives an error:
Data type not supported
What I tried : storing different members of the Query class in different fields of composite settings. But the data members of the Query class are again objects of different classes and, therefore, cannot be stored in compound. Values ["setting"].
Please refer to the 8th roaming window with a custom class . This question was answered using a composite setting, but not applicable to mine.
How do I proceed?