2016-04-23, 10:42
I am using an animation in Home.xml. I want it only executed when the previous window is Startup.xml and a couple of conditions are met:
Control 9200 is my widget container and so I want the animation to only start when that container has finished loading and the home menu item that is focused after startup actually has a widget associated with it. If it doesn't the animation should not be started.
Basically I can get this to work, however I can't seem to find a way to have this animation be performed only once. So anytime navigate the home menu and the above conditions are met again the animation is performed again obviously.
By using WindowOpen instead of Conditional as my animation type an animation is performed once as using
does not work.
Is there another obvious way to do this I am not seeing? In any case I think allowing conditions to be set for other animation types would be a useful feature.
PHP Code:
!Container(9200).IsUpdating + IsEmpty(Container(9000).ListItem.Property(widgetType))
Control 9200 is my widget container and so I want the animation to only start when that container has finished loading and the home menu item that is focused after startup actually has a widget associated with it. If it doesn't the animation should not be started.
Basically I can get this to work, however I can't seem to find a way to have this animation be performed only once. So anytime navigate the home menu and the above conditions are met again the animation is performed again obviously.
By using WindowOpen instead of Conditional as my animation type an animation is performed once as using
PHP Code:
<animation type="WindowOpen" condition="!Container(9200).IsUpdating + !IsEmpty(Container(9000).ListItem.Property(widgetType))">
does not work.
Is there another obvious way to do this I am not seeing? In any case I think allowing conditions to be set for other animation types would be a useful feature.