Why is my WPF textbox “kinda” readonly?

后端 未结 5 694
傲寒
傲寒 2020-12-13 14:21

I have a text box in WPF that is part of a datatemplate for a listbox. In that text box I can delete, backspace, spacebar, but I can NOT type in new words, letters or number

5条回答
  •  难免孤独
    2020-12-13 15:17

    Apparently one needs to add a ScrollViewer element with x:Name="PART_ContentHost" to the Border element, see the note at: http://msdn.microsoft.com/en-us/library/ms752068.aspx

提交回复
热议问题