I have a performance issue linking a large string to a TextBox in WPF.
In the view, I bind the TextBox Text property to the output property view, which is StringBuilder.
View:
<TextBox Text="{Binding Output, Mode=OneWay}" IsReadOnly="True"/>
ViewModel:
public StringBuilder Output
{
get { return _output; }
}
As the text in StringBuilder increases, the performance of the binding decreases.
What is the best way to do this using MVVM?
source
share