Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unloading a UserControl

Tags:

c#

wpf

There must be a simple way of unloading a UserControl from display without using Visibilty, as in theory it's not actually unloaded.

What solutions are there?

like image 295
Michael Avatar asked Jan 25 '12 22:01

Michael


1 Answers

You can use UserControl.Dispose() as documented here: http://msdn.microsoft.com/en-us/library/3cc9y48w.aspx

like image 118
Finster Avatar answered Oct 23 '22 18:10

Finster