Describe the bug
Crashes
Exception code: 0xc000041d
Faulting module path: C:\WINDOWS\SYSTEM32\uiautomationcore.dll
And
Exception code: 0xc0000005
Faulting module path: C:\Program Files\WindowsApps\Microsoft.WindowsAppRuntime.1.8_8000.642.119.0_x648wekyb3d8bbwe\Microsoft.UI.Xaml.dll
public static UIElement GetFormattedMessage(string inputMessage) {
var rtBlock = new RichTextBlock
{
FontSize = 14,
MaxLines = 1 ,
TextTrimming = TextTrimming.CharacterEllipsis ,
IsTextSelectionEnabled = false
};
var para = new Paragraph();
Run run = new Run();
run.Text = inputMessage;
para.Inlines.Add(run);
para.Inlines.Add(new Hyperlink());
rtBlock.Blocks.Add(para);
return rtBlock;
}
Sample POC to repro this bug: Git hub repo link
Why is this important?
app crashes in using microsoft.windowsappsdk version - 1.8.251003001
Steps to reproduce the bug
Launch Narrator. Scan mode
Navigate to the TextBlock element 2-3 times and try to navigate with tab - up/down arrow keys, app crashes
Actual behavior
App crashes
Expected behavior
App should not crash
Screenshots
No response
NuGet package version
WinUI 3 - Windows App SDK 1.8.2: 1.8.251003001
Windows version
Windows 11 (24H2): Build 26100
Additional context
related issue references - previous issue