I would like to group elements in my GUI. They are all in the same canvas, so they are not grouped visually. Some of them I want to move and some of them I want to shrink.
As I implement the animation in C# and not XAML I would like to know, if it is possible to mark the elements with a boolean or something similar in order to check its value when choosing the appropriate animation.
Since you are doing the animation in code-behind you can use pretty much any way you want to attach this extra boolean to the objects.
As a simple approach, you can use
FrameworkElement.Tagon each of the elements to put your extra data in. But there’s a million other possibilities as well.