I’ve been trying to make very simple notepad in WPF using C#.Everything there works fine (shortcuts,custom events,etc) but when I’m typing to RichTextBox it starts to lag or is adding some latency.My reason is that it is because it’s lacking the async behaviour but I have no idea at which point in code (XAML or code-behind) and how to add it.