Skip to content

Disposal of views #6556

Answered by kekekeks
penenkel asked this question in Q&A
Sep 7, 2021 · 1 comments · 5 replies
Discussion options

You must be logged in to vote

Controls are .NET objects and don't hold any native resources. Therefore, there is nothing to dispose. If your control needs to manage some native resource, either handle AttachedTo/DetachedFromVisualTree callbacks (or WhenActivated if you use ReactiveUI) or implement your own lifetime management.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@penenkel
Comment options

@kekekeks
Comment options

@workgroupengineering
Comment options

@kekekeks
Comment options

@penenkel
Comment options

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