public Form_Marks(TimedSequence sequence) { InitializeComponent(); host = new ElementHost { Dock = DockStyle.Fill }; _markDockerView = new MarkDockerView(); host.Child = _markDockerView; Controls.Add(host); PopulateMarkCollectionsList(sequence.LabeledMarkCollections); }
public Form_Marks(TimedSequence sequence) { InitializeComponent(); host = new ElementHost { Dock = DockStyle.Fill }; Catel.Windows.Controls.UserControl.DefaultSkipSearchingForInfoBarMessageControlValue = true; _mdvm = new MarkDockerViewModel(sequence.LabeledMarkCollections); _markDockerView = new MarkDockerView(_mdvm); _markDockerView.CloseViewModelOnUnloaded = true; host.Child = _markDockerView; Controls.Add(host); }