Why is my WPF textbox “kinda” readonly?

后端 未结 5 687
傲寒
傲寒 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:25

    I created a simple test app, and I can type new text into the TextBoxes in the ListBox:

    
        
            
                
                    
                        
                        
                    
                
            
        
    
    

    The only difference that I can see between the two is that an ItemTemplate is set on your ListBox, and one isn't on mine. What is the XAML for rADetailEntryLayout?

提交回复
热议问题