public void OnElementValueChanged(StandaloneInspectorControl control, object newValue, ref bool outChangeValid) { CListEntryViewModel vm = control.DataContext as CListEntryViewModel; if (vm != null) { SetInspectorElementValue(vm.Index, newValue); } }
public void OnElementKeyChanged(StandaloneInspectorControl control, object newValue, ref bool outChangeValid) { CDictionaryEntryViewModel vm = control.DataContext as CDictionaryEntryViewModel; if (vm != null) { object oldKey = vm.Key; if (m_displayedList.Any(viewModel => SafeEquals(viewModel.Key, newValue))) { //New key is already part of dictionary. Revert key change outChangeValid = false; } else { SetInspectorElementKey(oldKey, newValue, vm.Value); } } }
private void StandaloneInspectorControl_OnLockedChanged(StandaloneInspectorControl control, bool bIsLocked) { m_inspector.Lock(bIsLocked); }