Hello!
I’ve problem when target a WhileTrue statement, where I change a panel from Visibility=“Hidden” to Visibility=“Visible”.
First of all i target a WhileTrue statement where I change the panel ExhibitorDetails from Visibility=“Hidden” to Visibility=“Visible”. That works as it should be.
What I want: In the panel ExhibitorDetails I’ve an image that target a WhileTrue statement where I want to change the Visibility, so the ExhibitorDetails doesn’t show anymore.
<Page>
<Panel ux:Name="ExibitorList" Visibility="Visible">
<TextField Value="{name}">
<Clicked>
<Toggle Target="showDetails" />
</Clicked>
</TextField>
<WhileTrue ux:Name="showDetails">
<Change ExhibitorDetails.Visibility="Visible" />
<Change ExibitorList.Visibility="Hidden" />
</WhileTrue>
</Panel>
<Panel ux:Name="ExhibitorDetails" Visibility="Hidden">
<Image Alignment="TopRight" Width="25" Height="25" Margin="20" File="../../assets/CrossIcon.png">
<Clicked>
<Toggle Target="hideExhibitorDetails" />
</Clicked>
</Image>
<WhileTrue ux:Name="hideExhibitorDetails">
<Change ExhibitorDetails.Visibility="Hidden" />
<Change ExibitorList.Visibility="Visible" />
</WhileTrue>
</Panel>
</Page>