Can't paste all text in wpf textbox

Programista picture Programista · Oct 18, 2011 · Viewed 9.4k times · Source

I have a simple window and textbox, when i try to paste this code to the textbox

[Code]General           : sample.avi
Format            : AVI
Length            : 380 MiB for 16mn 57s 320ms

Video #0          : DivX 5 at 2994 Kbps
Aspect            : 1024 x 576 () at 25.000 fps

Audio #0          : MPEG-1 Audio layer 3 at 128 Kbps
Infos             : 2 channels, 48.0 KHz   [/code]

It stops after

[Code]General           : sample.avi

Why?

Answer

Joe Mancuso picture Joe Mancuso · Oct 18, 2011

You need to allow your TextBox to accept newlines:

AcceptsReturn="True"