Public Class InfoWindowV Private m_InfoWindowVM As InfoWindowVM Sub New(Owner As Window, objInfoWindowVM As InfoWindowVM) MyBase.New(Owner) ' This call is required by the designer. InitializeComponent() ' Add any initialization after the InitializeComponent() call. Me.DataContext = objInfoWindowVM m_InfoWindowVM = objInfoWindowVM End Sub End Class