Public Class MachOptionWindowV Private m_MachOptionWindowVM As MachOptionWindowVM Sub New(Owner As Window, MachOptionWindowVM As MachOptionWindowVM) MyBase.New(Owner) ' This call is required by the designer. InitializeComponent() Me.DataContext = MachOptionWindowVM ' Assegno al riferimento locale al VM il VM preso dal DataContext m_MachOptionWindowVM = MachOptionWindowVM End Sub End Class