Пример #1
0
            protected override bool CommitCellEdit(sw.FrameworkElement editingElement)
            {
                var control = editingElement as swc.TextBox ?? editingElement.FindChild <swc.TextBox> ("control");

                Handler.SetTextValue(control.DataContext, control.Text);
                return(true);
            }
Пример #2
0
            protected override object PrepareCellForEdit(sw.FrameworkElement editingElement, sw.RoutedEventArgs editingEventArgs)
            {
                var control = editingElement as swc.TextBox ?? editingElement.FindChild <swc.TextBox> ("control");

                return(base.PrepareCellForEdit(control, editingEventArgs));
            }