Skip to content

Conversation

adpa-ms
Copy link
Collaborator

@adpa-ms adpa-ms commented May 8, 2024

Since the DrawingIsland is stored in the ContentIsland's AppData, we must ensure that the ContentIsland is Closed in order to break the memory reference cycle. While in this particular case we could rely on the ContentIsland being closed implicitly when the window is torn down, I think it is better practice to explicitly call Close() during the Window.Closing event.

@adpa-ms adpa-ms requested a review from jeffstall May 8, 2024 23:37
@jeffstall jeffstall merged commit 6f0fe43 into user/jeffstall/drawingisland May 8, 2024
@jeffstall jeffstall deleted the user/adpa-ms/drawingisland-close branch May 8, 2024 23:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants