Hi there,
From my main XAML view I am loading one Window and once loaded I'm calling one UserControl under criteria.
That's fine but I don't know how to close, at first my UserControl, and finally my Window.
What happens? Nothing at all, my Windows remains and the UserControl too...
Help me out!!
1.Calling my Window from my XAML view:
Dim mVentanaOR As New OR_TotalManagement(1)
mVentanaOR.WindowStartupLocation = WindowStartupLocation.CenterScreen
If mVentanaOR.ShowDialog = True Then
End If
2.Calling my UserControl from my Window:
Public Sub New(soption As Short)
InitializeComponent()
If soption = 1 Then
Me.Title = "Selección de vehículo"
Me.GridGeneral.Children.Add(New SelecciondeVehiculo())
elseif option= 2 then
3.We are now in my UserControl:
Me.Finalize()
Me.UserControl_Unloaded(sender, e)
I understand that from my UserControl I would have to address to the Parent. How???
Thanks for your comments,
Primary platform is Windows 7 Ultimate 64 bit along with VS 2012/Sql2k8 for WPF/SilverLight projects.