Click event not working


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

   <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"/>
      <WhileTrue Value="{ReadProperty forceShow.Value}" >
         <Scale Factor="0.9" Duration="1" Easing="ElasticInOut"/>
   <ExploreItem ux:Name="topItem" >
               <Set forceShow.Value="true" />

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.