Exemplo n.º 1
0
 public void InitializeEditorElement(InPlaceEditor inPlaceEditor)
 {
     if (inPlaceEditor.EditorElement is TextBox textBox)
     {
         textBox.SelectAll();
     }
 }
Exemplo n.º 2
0
            public bool QueryEditorElementFocus(InPlaceEditor inPlaceEditor)
            {
                if (!(Keyboard.FocusedElement is DependencyObject obj))
                {
                    return(true);
                }

                return(obj.FindVisaulAncestor <InPlaceEditor>() == null);
            }
Exemplo n.º 3
0
            internal override void Flush(InPlaceEditor element)
            {
                var editorElement = element.EditorElement;

                if (editorElement != null)
                {
                    _editorInput.Flush((TEditor)editorElement);
                }
            }
Exemplo n.º 4
0
 public bool QueryEditorElementFocus(InPlaceEditor inPlaceEditor)
 {
     return(GetMode(inPlaceEditor) == GridCellMode.Edit);
 }
Exemplo n.º 5
0
 public bool QueryEditingMode(InPlaceEditor inPlaceEditor)
 {
     return(GetMode(inPlaceEditor) == GridCellMode.Edit);
 }
Exemplo n.º 6
0
 private static IEnumerable <CommandEntry> GetCommandEnties(ICommandService commandService, InPlaceEditor inPlaceEditor)
 {
     return(commandService.GetCommandEntries(inPlaceEditor));
 }
Exemplo n.º 7
0
 public void InitializeInertElement(InPlaceEditor inPlaceEditor)
 {
 }
Exemplo n.º 8
0
 public bool QueryEditingMode(InPlaceEditor inPlaceEditor)
 {
     return(inPlaceEditor.IsRowEditing || inPlaceEditor.IsScalarEditing);
 }