I'm sure this has been visited hundeds of times, but I cannot find the resolution to my issue. I'm using the 4.5 production release.
I have a class that derives from the GdiPlusRasterLayer. And in my derivation, I have a bitmap that I want to use for the imagery. So, I have a StreamLoading handler on the GdiPlusRasterSource that set as the ImageSource of the raster layer.
In my "DrawCore" event, I try to call base.DrawCore(). This throws an error because the layer has not been opened. That makes sense, so I add a base.Open() call. This throws an error because the "File specified does not exist", and tells me the name of the file. And that is also correct. I don't have this file. That's why I want to use the StreamLoadIng event.
The StreamLoading event of on the raster source is never firing unless I make a call to ImageSource.Open().
I'm not overriding the layer.OpenCore, et al, functions.
Why am I getting this file not found exception when opening a layer, w/o the StreamLoading event being called on the underlying raster source?