private void UnregisterListeners() { // We are not checking this.ShouldSynchronizeCurrentItem since it might have returned the wrong value // when RegisterListeners was called if the grid was still in the process of being instantiated. CurrentItemChangedEventManager.RemoveListener(m_dataGridContext, this); CurrentChangedEventManager.RemoveListener(m_collectionView, this); }
private void RegisterListeners() { // We are not checking this.ShouldSynchronizeCurrentItem since it might return the wrong value if the grid // is still in the process of being instantiated. CurrentItemChangedEventManager.AddListener(m_dataGridContext, this); CurrentChangedEventManager.AddListener(m_collectionView, this); }