// Token: 0x060046FB RID: 18171 RVA: 0x00141FBC File Offset: 0x001401BC
        internal bool CommitEdit()
        {
            bool           flag   = true;
            DataGridColumn column = this.Column;

            if (column != null)
            {
                flag = column.CommitEdit(base.Content as FrameworkElement);
            }
            if (flag)
            {
                this.IsEditing = false;
            }
            return(flag);
        }
Esempio n. 2
0
        internal bool CommitEdit()
        {
            Debug.Assert(IsEditing, "Should not call CommitEdit when IsEditing is false.");

            bool           validationPassed = true;
            DataGridColumn column           = Column;

            if (column != null)
            {
                // Ask the column to access the binding and update the data source
                // If validation fails, then remain in editing mode
                validationPassed = column.CommitEdit(Content as FrameworkElement);
            }

            if (validationPassed)
            {
                IsEditing = false;
            }

            return(validationPassed);
        }