This approach is built around a state model rather than an imperative model. Typically the While... trigger may do several things as well, and this groups them together. It also creates a logical group of changes, and is state stable (you won’t accidentally get into an irreversible or inconsistent state when using change and transfrom animators).
If you have more than two states to toggle you can use the StateGroup.
Yea that’s the way I do it now, but if you want multiple things to toggle through then how would you use StateGroup could you show me an example?
This feature would allow for a whole bunch of things, changing text of a button, colors etc.
How is this done with StateGroup and it still might be useful to have this because less code, all I have to do is add a comma and value to the Values property of Trigger
To switch the state use <Set TheGroup.Active="StateB"/>.
If you have a use-case where your syntax would be shorter, and still clear, then please post it. It’d give me a better idea of how to consider a potential new feature. By use-case I mean a full scenario where it would be used, so I get a full picture of how it would work.
Still much more code, because for each color you’ll need a <State> and <Change>, and still need the <StateGroup. One could always use an <Each> to make a <State> for each color, but again its more work for simple values. Its still obviously very useful for complex things, because you may have animation and all sorts of things, but having <Toggle Target="..." Value="..." /> is much simpler.
To all people viewing this, if you agree with this feature please say something, this is how the Fuse team knows whether is worth implementing. (I’m just one person) Thanks