public CustomMappingView(CustomMappingViewModel context) { this.InitializeComponent(); this.DataContext = context; }
public CustomMappingView(CustomMappingViewModel context) { this.InitializeComponent(); this.DataContext = context; this.Owner = Application.Current.Windows.OfType <MainWindow>().First(); }