In Development
Last Updated: 10 Mar 2025 17:05 by ADMIN
Martin Ivanov
Created on: 04 Mar 2025 13:39
Category: VirtualKeyboard
Type: Bug Report
0
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