make parent readonly, the only way to modify it is using the appendDeclaration or withDaclarations, make it hard to mis use.
Fix bug move reset the flags below the place where they used.
Add post process block, which is called when the view layout binding finished.