Esempio n. 1
0
        /// <summary>Performs any required validation before exiting the editing mode.</summary>
        /// <param name="editingElement">The element that the column displays for a cell in editing mode.</param>
        /// <returns>
        ///     <see langword="false" /> if validation fails; otherwise, <see langword="true" />.</returns>
        // Token: 0x060048BA RID: 18618 RVA: 0x0014A4E0 File Offset: 0x001486E0
        protected override bool CommitCellEdit(FrameworkElement editingElement)
        {
            ComboBox comboBox = editingElement as ComboBox;

            if (comboBox != null && comboBox.EditableTextBoxSite != null)
            {
                DataGridHelper.CacheFlowDirection(comboBox.EditableTextBoxSite, comboBox.Parent as DataGridCell);
                DataGridHelper.CacheFlowDirection(comboBox, comboBox.Parent as DataGridCell);
            }
            return(base.CommitCellEdit(editingElement));
        }
Esempio n. 2
0
        /// <summary>Causes the column cell being edited to revert to the specified value.</summary>
        /// <param name="editingElement">The element that the column displays for a cell in editing mode.</param>
        /// <param name="uneditedValue">The previous, unedited value in the cell being edited.</param>
        // Token: 0x060048B9 RID: 18617 RVA: 0x0014A490 File Offset: 0x00148690
        protected override void CancelCellEdit(FrameworkElement editingElement, object uneditedValue)
        {
            ComboBox comboBox = editingElement as ComboBox;

            if (comboBox != null && comboBox.EditableTextBoxSite != null)
            {
                DataGridHelper.CacheFlowDirection(comboBox.EditableTextBoxSite, comboBox.Parent as DataGridCell);
                DataGridHelper.CacheFlowDirection(comboBox, comboBox.Parent as DataGridCell);
            }
            base.CancelCellEdit(editingElement, uneditedValue);
        }
 /// <summary>Performs any required validation before exiting edit mode.</summary>
 /// <param name="editingElement">The element that the column displays for a cell in editing mode.</param>
 /// <returns>
 ///     <see langword="false" /> if validation fails; otherwise, <see langword="true" />.</returns>
 // Token: 0x060048FA RID: 18682 RVA: 0x0014B19E File Offset: 0x0014939E
 protected override bool CommitCellEdit(FrameworkElement editingElement)
 {
     DataGridHelper.CacheFlowDirection(editingElement, (editingElement != null) ? (editingElement.Parent as DataGridCell) : null);
     return(base.CommitCellEdit(editingElement));
 }
 /// <summary>Causes the column cell being edited to revert to the specified value.</summary>
 /// <param name="editingElement">The element that the column displays for a cell in editing mode.</param>
 /// <param name="uneditedValue">The previous, unedited value in the cell being edited.</param>
 // Token: 0x060048F9 RID: 18681 RVA: 0x0014B17D File Offset: 0x0014937D
 protected override void CancelCellEdit(FrameworkElement editingElement, object uneditedValue)
 {
     DataGridHelper.CacheFlowDirection(editingElement, (editingElement != null) ? (editingElement.Parent as DataGridCell) : null);
     base.CancelCellEdit(editingElement, uneditedValue);
 }