public void UpdateUI() { Debug.WriteLine($"Loaded {ViewModel.Name}"); _disposables?.Dispose(); _disposables = new CompositeDisposable(); this.Bind(ViewModel, vm => vm.Checked, v => v._check.State, _check.ObservableActivated(), vmv => vmv ? NSCellStateValue.On : NSCellStateValue.Off, vvm => vvm == NSCellStateValue.On) .DisposeWith(_disposables); this.OneWayBind(ViewModel, vm => vm.Name, v => v._check.Title) .DisposeWith(_disposables); Deactivated .Take(1) .Subscribe(_ => { _disposables.Dispose(); Debug.WriteLine($"Unloaded {ViewModel.Name}"); }); }