Пример #1
0
        /// <summary>Called when a cell in the column enters editing mode.</summary>
        /// <param name="editingElement">The element that the column displays for a cell in editing mode.</param>
        /// <param name="editingEventArgs">Information about the user gesture that is causing a cell to enter editing mode.</param>
        /// <returns>The unedited value.</returns>
        // Token: 0x060048B8 RID: 18616 RVA: 0x0014A458 File Offset: 0x00148658
        protected override object PrepareCellForEdit(FrameworkElement editingElement, RoutedEventArgs editingEventArgs)
        {
            ComboBox comboBox = editingElement as ComboBox;

            if (comboBox != null)
            {
                comboBox.Focus();
                object comboBoxSelectionValue = this.GetComboBoxSelectionValue(comboBox);
                if (DataGridComboBoxColumn.IsComboBoxOpeningInputEvent(editingEventArgs))
                {
                    comboBox.IsDropDownOpen = true;
                }
                return(comboBoxSelectionValue);
            }
            return(null);
        }