The vertical and horizontal scrollbar positions get cached during scrolling. If you scroll around and then resize the RadRichTextEditor so that the scrollbars are no longer needed and then you resize the editor again to show the scrollbars, the cached position is used, instead of resetting it to 0,0.
This reproduces when the LayoutMode of the editor i set to FlowNoWrap.
To work this around, reset the scrollbars' Value to 0 on SizeChanged.
private void RadRichTextEditor1_SizeChanged(object sender, EventArgs e)
{
Normalize(radRichTextEditor1.RichTextBoxElement.VerticalScrollBar);
Normalize(radRichTextEditor1.RichTextBoxElement.HorizontalScrollBar);
}
private static void Normalize(RadScrollBarElement sb)
{
int maxUser = Math.Max(sb.Minimum, sb.Maximum - sb.LargeChange + 1);
if (sb.Visibility != ElementVisibility.Visible)
{
sb.Value = sb.Minimum;
return;
}
if (sb.Value > maxUser)
{
sb.Value = maxUser;
}
}
Font size drop-down:
In Microsoft Word, the drag-and-drop functionality for Structured Document Tags (Content Controls) allows users to reposition an entire content control and all its contents within the document using the mouse.
What it does
When a user selects the boundary/frame of a content control rather than the text inside it:
Typical workflow
Common use cases
Important limitations
The behavior may be restricted when:
Word allows users to treat a content control as a movable document object, enabling the entire SDT and its contents to be repositioned via drag-and-drop while preserving the control's structure and properties.