Hi!
I have a simple user control with the following content:
<Grid x:Name="LayoutRoot">
<Button x:Name="btnOpenGenericPage" Click="btnOpenGenericPage_Click" Content="Open"/>
</Grid>
I understand how the click event handler is created and wired up -> on the InitializeComponent method of the .g.cs class the System.Windows.Application.LoadComponent method is called and all the magic is done.
However, once this control is removed from the VisualTree, I don't seem to understand if the unwiring of the event is ocurring. If yes, who takes care of this? Are there any situations where the event won't be unwired? Can someone please shed some light on this issue?
Many thanks in advance, Bruno.