Unplanned
Last Updated: 21 Jan 2026 12:46 by ADMIN
Martin Ivanov
Created on: 24 Dec 2025 10:59
Category: RichTextBox
Type: Bug Report
1
RichTextBox: ArgumentException is thrown when using the Windows voice typing function (WinKey+H) to dictate text

ArgumentException occurs when using the voice typing feature of Windows (started with the Windows Key + H key combo) to convert speech to text in RadRichTextBox.

Exception stacktrace:

System.ArgumentException: 'Requested distance is outside the content of the associated document.'PresentationFramework.dll!System.Windows.Documents.TextPointer.TextPointer(System.Windows.Documents.TextContainer textContainer, int offset, System.Windows.Documents.LogicalDirection direction)
  PresentationFramework.dll!System.Windows.Documents.TextContainer.CreatePointerAtOffset(int offset, System.Windows.Documents.LogicalDirection direction) 
  PresentationFramework.dll!System.Windows.Documents.TextParentUndoUnit.Do() 
  PresentationFramework.dll!MS.Internal.Documents.UndoManager.Redo(int count) 
  PresentationFramework.dll!System.Windows.Documents.TextStore.RedoQuietly(int count)  PresentationFramework.dll!System.Windows.Documents.TextStore.SetFinalDocumentState(MS.Internal.Documents.UndoManager undoManager, System.Collections.Stack imeChangeStack, int appChangeCount, int imeSelectionAnchorOffset, int imeSelectionMovingOffset, int appSelectionAnchorOffset, int appSelectionMovingOffset)  PresentationFramework.dll!System.Windows.Documents.TextStore.HandleCompositionEvents(int previousUndoCount)  PresentationFramework.dll!System.Windows.Documents.TextStore.GrantLockWorker(MS.Win32.UnsafeNativeMethods.LockFlags flags)   PresentationFramework.dll!System.Windows.Documents.TextStore.RequestLock(MS.Win32.UnsafeNativeMethods.LockFlags flags, out int hrSession)

2 comments
ADMIN
Martin Ivanov
Posted on: 21 Jan 2026 12:46

Hello Valentin,

This is not included in the current planning and I can't provide you with a specific timeframe for fixing this. You can follow the feedback item to get notified as its status changes. 

In the meantime, if you need to add speech input in the RadRichTextBox, you can use the new RadSpeechToTextButton which was just released.

You can disable the Win+H voice typing for the RadRichTextBox by setting the InputMethod.IsInputMethodEnabled attached property to False. You can set it on the Caret element via an implicit style.

<telerik:RadRichTextBox>
    <telerik:RadRichTextBox.Resources>
        <!-- remove the BasedOn setting if you use the Xaml version of the Telerik dlls -->
        <!-- https://www.telerik.com/products/wpf/documentation/styling-and-appearance/xaml-vs-noxaml -->
        <Style TargetType="telerik:Caret" BasedOn="{StaticResource CaretStyle}">
            <Setter Property="InputMethod.IsInputMethodEnabled" Value="False" />
        </Style>
    </telerik:RadRichTextBox.Resources>
</telerik:RadRichTextBox>

This way when you show the voice typing dialog while the RichTextBox is focused, a message similar to the following will be displayed:

Regards,
Martin Ivanov
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Valentin
Posted on: 14 Jan 2026 19:47
Hi Martin, are there any news regarding plans to fix this?