Set slide state before calling onPanelXxx event callbacks. Calls to isAnchored() and isExpanded() should return the correct value if called during the onPanelXxx event callbacks.