Public Class TablePartWindowV Private m_TablePartWindowVM As TablePartWindowVM Sub New(Owner As Window, objTablePartWindowVM As TablePartWindowVM) MyBase.New(Owner) ' This call is required by the designer. InitializeComponent() ' Add any initialization after the InitializeComponent() call. Me.DataContext = objTablePartWindowVM m_TablePartWindowVM = objTablePartWindowVM End Sub End Class