I feel like this should be possible, but I can't seem to get it working.
My end-goal is to have an arrow inside a template change it's angle by 90 degrees based on the length-width dimensions of the template it's part of. As this template is meant to be resizable, it's configured as a square. When it's used in a window I will resize it to either a width>height or height>width rectangle. I can't seem to find a trigger inside the template that is fired when the in-window template is resized.
I have tried:
- Using the width-height properties of the base-template, but these don't change when the in-window template is resized.
- Using a 'property changed' trigger on the base-template's width or height property. Probably because of the same reasons as the previous point.
- Using a 'property changed' trigger on a component that's set to fill the template, hoping this would be treated differently.
I'm thinking a script on the in-window template might work, but that defeats the purpose of the template - having to add a script to every template.
Eager to hear ideas on how to get this to work. Worst comes to worst I'll just have to add a property to determine the orientation of the arrow, but I feel this should be possible and I don't like manually setting properties when it's not necessary.