Hi, excuse the simple question again!
I have a panel which fills the width of the screen and which I would like to resize when a particular state is true.
I tried the following (below). The panel does resize, but first it immediately shifts to the right so that it’s half off the page and then resizes by shrinking from the right. I would like the panel to remain in the center of the screen and to resize from both the left and right sides at the same time, eg.
What happens:
##########
########## <-
## <-
What I want:
##########
-> ## <-
Attempted code:
<Panel ux:Name="panel">
<LayoutAnimation>
<Resize Vector="1" RelativeTo="SizeChange" Duration="0.25"/>
</LayoutAnimation>
<WhileTrue Value="{working}">
<Set panel.Width="50"/>
</WhileTrue>
</Panel>
Any ideas how I can do this? Thanks!