Skip to content

Is there any way to close the ViewModel of the ContentControl #362

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

You must be logged in to vote

You probably want

TreatEffectSpotScanDetailsViewModel.ConductWith(this);

In the parent VM ctor (assuming that the parent isn't a Conductor, which you haven't shown). That way the child will know when the parent is activated/deactivated/closed.

That said, objects remaining in memory after they're no longer used is normal, and is how the .NET GC works.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by zpccode
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