Completed
Last Updated: 21 May 2025 07:52 by ADMIN
Release 2025.2.521 (2025 Q2)
Martin Ivanov
Created on: 04 Mar 2025 13:39
Category: VirtualKeyboard
Type: Bug Report
3
VirtualKeyboard: NullReferenceException when the Loaded event is invoked and the control is not added to the visual tree yet

NullReferenceException is thrown when the RadVirtualKeyboard control gets loaded, but it is not added to the visual tree. This skips the initialization of an internal collection which is used on Loaded, thus throwing the error.

To work this around, you can manually call the OnApplyTemplate method of RadVirtualKeyboard before it gets loaded.

virtualKeyboard.OnApplyTemplate();

0 comments