I have the following XAML snippet:
<ScrollViewer VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Disabled"> <TextBlock HorizontalAlignment="Stretch" Margin="10" VerticalAlignment="Stretch" TextWrapping="Wrap"/> </ScrollViewer>
When I resize the window where the ScrollViewer is located, I have a very big performance problem: the window freezes for a few seconds!
How can I solve this problem?
source share