Hello, does the RichTextBox have a method that will prevent the UI updating while I change the text in code? At times, some of the updates I make don't show up in the UI, and I'm thinking it's a timing or refresh issue. I'm editing the existing text. Sometimes the font won't change, sometimes the alignment won't change etc. My code looks something like this:
radRichText.ChangeTextAlignment(Telerik.Windows.Documents.Layout.RadTextAlignment.Center);
radRichText.ToggleItalic();
radRichText.ChangeTextForeColor((Color)ViewModel.TextColor);
radRichText.Background = new SolidColorBrush((Color)ViewModel.TextBackColor);
FontFamily fontFamily = new System.Windows.Media.FontFamily(ViewModel.Font);
radRichTextBoxCells.ChangeFontFamily(fontFamily);
Thanks,
Scott
radRichText.ChangeTextAlignment(Telerik.Windows.Documents.Layout.RadTextAlignment.Center);
radRichText.ToggleItalic();
radRichText.ChangeTextForeColor((Color)ViewModel.TextColor);
radRichText.Background = new SolidColorBrush((Color)ViewModel.TextBackColor);
FontFamily fontFamily = new System.Windows.Media.FontFamily(ViewModel.Font);
radRichTextBoxCells.ChangeFontFamily(fontFamily);
Thanks,
Scott