Titus Taylor

Titus Taylor

  • NA
  • 4
  • 6.8k

Is it possible to dispose of user control in WPF?

Apr 3 2019 4:10 PM
Is it possible to dispose of a unmanaged user control - say - after a tab is closed?
 
We set a Document Panel from Dev Express and the .Content property to:
 
  1. TestControl = Activator.CreateInstance(matchingControlName, new Object[] { stringParam }) as UserControl;  
And when they close the tab, I want to fully remove this user control from memory. 

Answers (1)