C#/WPF: Disable Text-Wrap of RichTextBox

前端 未结 6 1567
醉酒成梦
醉酒成梦 2020-12-01 20:44

Does anyone know how I can disable the text wrapping of a RichTextBox? E.g. if I have a large string which doesn\'t fit in the window, the RichTextBox

6条回答
  •  孤街浪徒
    2020-12-01 21:13

    If you don't want to show the horizontal scrollbar, enforce a MinWidth on the ScrollViewer:

    
    
        
            
        
    
    
    

提交回复
热议问题