2016-01-05, 02:50
I have a problem that when I opened a window toggle buttons weren't being rendered until they were clicked. This only started happening after PR:8310. After experimenting I find the problem is caused by an animation. This animation works on other controls and also on toggle buttons prior to 8310. The code looks like this:
What I found is the problem is with the "WindowOpen" type on the togglebutton control. In this case the control is nested in a grouplist which in turn is nested in a group. Both the group and grouplist have slide animations that fire when the group has focus and then then a button control in the group has focus. That results in a drop-down of the inner grouplist containing the togglebutton. When I comment-out the "WindowOpen" fade for the togglebutton, the togglebutton then shows as expected. So I edited that fade to:
and that works, but I don't understand why I need to do this just for toggle buttons, or more generally how that "fade" animation is supposed to work if you don't specify the start/end values.
scott s.
.
Code:
<animation effect="fade" time="500">WindowOpen</animation>
<animation effect="fade" time="200">Visible</animation>
<animation effect="fade" time="200">WindowClose</animation>
<animation effect="fade" time="200">Hidden</animation>
What I found is the problem is with the "WindowOpen" type on the togglebutton control. In this case the control is nested in a grouplist which in turn is nested in a group. Both the group and grouplist have slide animations that fire when the group has focus and then then a button control in the group has focus. That results in a drop-down of the inner grouplist containing the togglebutton. When I comment-out the "WindowOpen" fade for the togglebutton, the togglebutton then shows as expected. So I edited that fade to:
Code:
<animation effect="fade" start="0" end="100" time="500">WindowOpen</animation>
and that works, but I don't understand why I need to do this just for toggle buttons, or more generally how that "fade" animation is supposed to work if you don't specify the start/end values.
scott s.
.