Trying to use states to manage the visibility of sublayers. Is that possible?
The way I've been doing this is by managing sublayers using the StateWillChange event and acting differently depending on what the next state of the parent layer will be. Not sure if there's a more direct way though! I don't think attributes of a sublayer can be set in the state declaration of its parent layer.