I have some text in a ScrollViewer control written in c# code, how do I wrap the text? Any solution?
Initialy I have a pop-up, inside this a stack panel and added
ScrollViewer sv = new ScrollViewer();
In this scroll viewer i put some text.
string values[]= new string[]; //(example)
sv.Content = values[1];
When I open pop-up, if text length is more than screen size, he need to show scroll bar.
sv.TextWrapping = TextWrapping.Wrap;
is possible or something another way? All items ( scroll viewer, text ) I puts behind view, not in xaml (view) because my content are dynamic.