Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Releasing a user control with events.
Message
De
19/03/2008 14:56:31
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Windows Presentation Foundation (WPF)
Titre:
Releasing a user control with events.
Versions des environnements
Environment:
C# 3.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01303552
Message ID:
01303552
Vues:
57
Boy this section is quiet, I'm beginning to feel like only Viv and me are playing with WPF. Well at least I finally feel like I'm out of the brain dead phase starting to get a rough idea of what I'm doing. The learning curve on this seemed steeper than most of the languages I've learned. But I'm beginning to really like it, and in some ways it's closer to VFP for me than WinForms was.

This question probably has the same answer for WPF and WinForms.

I'm using a TabControl and using tabControl.Items.Remove(tabItem) to close the content of the tabs.

That should be the last reference to the the TabItem and its content, except for events.

Do I also need to -= remove the events to get the TabItem to be released from memory?

Should I -= the events anyways, or is it unnecessary?

Is there something else I should be doing to release the TabItem and it's content?
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform