private void CmdPreview_Click(object sender, RoutedEventArgs e) { List <PreviewRowItem> previewRowItems = getPreviewRowItems(); PreviewChangesViewModel previewVM = new PreviewChangesViewModel(_columnName, _selectionColumnName, previewRowItems); PreviewChanges previewWindow = new PreviewChanges(previewVM); previewWindow.ShowDialog(); }
public PreviewChanges(PreviewChangesViewModel pcv) { DataContext = pcv; InitializeComponent(); }