or
editor.Document.CaretPosition.MoveToPreviousInline();var currpara = editor.Document.CaretPosition.GetCurrentParagraphBox().AssociatedParagraph;var atable=ExpandedColl.Where(x=>x.Key==spanbox.Tag).FirstOrDefault().Value;if(atable!=null){ currsect.Blocks.AddAfter(currpara, atable);}<telerik:RadNumericUpDown Margin="0, 4, 0, 4" Value="{Binding MyValue, Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Maximum="{Binding MaxWidthValue}" IsEnabled="{Binding IsPropertyEnabled}"/> MyValue is changed from data.
The problem is :
If this RadNumericUpDown has focus, the UI value does not change even though MyValue changed in Data. As soon as Tab out from this control, UI will change immediately.
If this control does not have focus, the UI displayed value will change instantly as MyValue changes.