Skip to content

OnInitialActivate does not get called in "Child" Screen #276

Answered by canton7
uyaem asked this question in Q&A
Discussion options

You must be logged in to vote

(Converted this support request to a discussion. Please read the issue template).

The parent doesn't know that the child exists. How would it? It's therefore impossible to know that there's something which needs to be activated.

You can use a Conductor<IScreen>, and set ActiveItem rather than having a DynamicItem property: the conductor knows that the ActiveItem property contains a child which needs to be activated/etc. See the documentation.

You can also use child.ConductWith(parent) for long-lived children, but don't do this if the child might be destroyed before the parent.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@uyaem
Comment options

@canton7
Comment options

@uyaem
Comment options

@canton7
Comment options

Answer selected by uyaem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #275 on August 10, 2021 07:45.