Completed
Last Updated: 08 Apr 2024 14:24 by ADMIN
Release 2024.1.408
Martin Ivanov
Created on: 15 Mar 2024 11:35
Category: Buttons
Type: Bug Report
4
Buttons: NullReferenceException when setting IsChecked of RadToggleSwitchButton before the control is added to the visual tree

NullReferenceException is thrown if you set the IsChecked property of the RadToggleSwitchButton before the button is added to the visual tree. This happens only when the switch animation is disabled.

To work this around, you can set the AnimationManager.IsAnimationEnabled property of the button to True initially. And then set it back to False on Loaded of the button.

0 comments