Click event not working

Hi,

This snipet of code doesn’t works when i want to add Clicked event from an instance of a class, or i missed something ?

<App>
   <iOS.StatusBarConfig Style="Light" />
   <Panel ux:Class="ExploreItem" Margin="20" BoxSizing="FillAspect" Aspect="1.85" >
      <LetBool ux:Name="forceShow" Value="false"/>
      <Panel ux:Name="imgMaster" Height="300">
         <Image ux:Name="img" StretchMode="UniformToFill" File="Assets/event1.jpg"/>
      </Panel>
      <WhileTrue Value="{ReadProperty forceShow.Value}" >
         <Scale Factor="0.9" Duration="1" Easing="ElasticInOut"/>
      </WhileTrue>
   </Panel>
   <ExploreItem ux:Name="topItem" >
        <Clicked>
               <Set forceShow.Value="true" />
       </Clicked>
  </ExploreItem>
</App>

Thank you.

The forceShow var lives in another data scope and can not be directly accessed from the scope you’re calling it from.

You either need to put the Clicked inside of the ux:Class, or move the thing you want to control out of the ux:Class.