I call my view from this window:
Class MasterGIT Public Sub New() Me.InitializeComponent() End Sub Public Sub acaba(sender As Object, e As RunWorkerCompletedEventArgs) Me.MarcPrincipal.Visibility = Windows.Visibility.Visible Me.MarcPrincipal.Source = New Uri("Customers.xaml", UriKind.RelativeOrAbsolute) End Sub
But my constructor is waiting parameters, have not idea how can I pass them, here you have it:
Class Customers
Public newClient as clsClientes
Public Sub New(ByVal aBD As clsAccesobd, _ ByVal dLog As clsLog, _ ByVal strUsuario As String, _ Optional ByVal desde_DONDE As Integer = 0, _ Optional ByVal documento As String = "") Try InitializeComponent() newClient = New clsClientes() CultureManager.UICulture = Thread.CurrentThread.CurrentCulture Me.aBD = aBD Me.dLog = dLog
Me.strUsuario = strUsuario
No, I'm not using MVVM patterns and things like that.
Is it possible achieve this without using ViewModel classes? I've got my view and got my model...
In this case I'm calling Customers.XAML from another view entity, just one Window class.
Thanks in advance,
Primary platform is Windows 7 Ultimate 64 bit along with VS 2012/Sql2k8 for WPF and SilverLight stuff