All,
I'm developing an app that will show users a dashboard of resources on their server.
Broadly I have 3 main classes involved in the data model: Server, Domain, RegisteredResource. These each extend a 'SmashObject' base class.
The Server object is acting as a container and contains several observable collections like so:
private ObservableCollection<Domain> _allDomains = new ObservableCollection<Domain>();
public ObservableCollection<Domain> AllDomains
{
get { return this._allDomains; }
}
private ObservableCollection<RegisteredResource> _allResources = new ObservableCollection<RegisteredResource>();
public ObservableCollection<RegisteredResource> AllResources
{
get { return this._allResources; }
}
In my UI I want to be able to show both the Domains and Resources in a single Gridview - so I can still use semantic zoom on it. As each extend the same base class I could create a new collection of type <SmashObject> and combine the two sets, however
the PropertyPaths will be different for each main type.
So does anyone have any advice for how to approach this problem? Is there a way to have multiple GridViews in a single semantic zoom for example? Is there a way of 'typeof' checking in Xaml?
All suggestions appreciated.
Cheers,
Chris