public LogViewerControl() { InitializeComponent(); ShellService.SatisfyImportsOnce(this); var uavcan = _uavcan.Engine; var filter = TableFilterSet.ViewModel; ViewModel = new LogViewerViewModel(uavcan, filter); this.WhenActivated(disposableRegistration => { this.OneWayBind(ViewModel, vm => vm.LogItems, v => v.dgLogItems.ItemsSource) .DisposeWith(disposableRegistration); this.BindCommand(ViewModel, vm => vm.AddFilter, v => v.AddFilterButton) .DisposeWith(disposableRegistration); }); }