Grouping of controls together?

Is there a way to group various controls together so as to change properties to the container?

For example:

If I have 10 TextBlocks and I want to change the Visibility to False, I need to do each individually. Or if I wanted to shift them all to left by 10 px, I would need to do each individually.

In WPF world I would throw them into a canvas and do my actions on the container.

can you use the canvas in glide?

The Canvas object is for drawing. You’ll need to loop through items to alter them. Why not create an array of the components to make it easier?

Container.Visible = false;

vs

foreach (var item in items)
{
item.Visible = false;
}

It’s certainly not a hardship for the second way of doing it.

With the container, it’s just more convenient. But more importantly, a container is clearer/more organized mental picture for me. With the array, in my mind I have to keep track on many different objects as opposed to a single object.

Additionally, every time I add an additional item to the array I would need to remember to resize my array. Knowing me I would get an “Array index out of bounds” exception every time before I remember why :slight_smile:

Again - it’s not deficiency with Glide. I just need to think differently.

This is a very cool library you’ve put together!! I first put my concept together with WPF, because that’s what I’m familiar with. Now I’m looking into Glide, and am finding it to be very comfortable and in many ways fits me better than WPF.