Johnny,
I believe if I get a better idea of how the StreamLoading event works, I might be able to work this out. I am currently calling a web service to retrieve the files, which I am then storing in Streams, so they're already half way there. My question is on the StreamLoading though. I'm going to try to step through my knowledge of how it works, so please correct me where I'm wrong.
- A new ShapeFileFeatureLayer is created with a path (let's use "test.shp"). It seems like this can be any arbitrary name, as long as it ends with .shp.
- The StreamLoading event is assigned for the ShapeFileFeatureLayer's FeatureSource.
- The layer is loaded, popping the StreamLoading event.
- (Here's where I'm unclear) The StreamLoading event's completed delegate asks for one of each of the file extensions (.shp, .dbf, etc.) and for a stream for each of them.
- The layer is displayed on the map.
So, if my thoughts are correct, I could easily assign one of my streams to the AlternateStream property of the StreamLoadingEventArgs, right? If you can confirm my thoughts on the above steps, I would vastly appreciate it.
-Dustin