The TextBox in the Popup set in the DataGrid cell cannot be edited.

  • MainWindow with Popup settings
  • UserControl with TextBox with Popup
  • Whole code

However, if the DataTemplate set in DataGridTemplateColumn.CellTemplate is written in the same xaml, it can be edited. Specifically, in MainWindow.xaml, comment outandIf i undo the comment out below, you can edit it as you intended.

How can I make xaml separate and editable?

If i know anyone, please teach me.

  • Answer # 1

    I don't know the reason at all, but when I created a similar one with a custom control (define a style inGeneric.xaml), the caret entered and became editable.

    Is this going to separate xaml?