开发者

Setting toggle switch value

开发者 https://www.devze.com 2023-03-24 02:18 出处:网络
How can I switch the toggle swit开发者_如何学JAVAch button to be true without triggering the ToggleSwitch_Checked function?

How can I switch the toggle swit开发者_如何学JAVAch button to be true without triggering the ToggleSwitch_Checked function?

I am using the toggleswitch.IsChecked property, but this is triggering the previously mentioned function.


If you don't want the events to be triggered when first setting the value of the control you could simply not attach the event handler(s) until the initial values have been set.

0

精彩评论

暂无评论...
验证码 换一张
取 消