Skip to content

Instantly share code, notes, and snippets.

@NickIliev
Last active August 14, 2019 12:25
Show Gist options
  • Save NickIliev/79cea4a17fec8704c8fc60a67c397c8d to your computer and use it in GitHub Desktop.
Save NickIliev/79cea4a17fec8704c8fc60a67c397c8d to your computer and use it in GitHub Desktop.
Using isPassThroughParentEnabled property to pass gestures from disabled button to a parent layout.
<GridLayout id="outmost" margin="10" backgroundColor="orangered" tap="onTap">
<GridLayout id="middle" margin="50" backgroundColor="lightgray" tap="onTap">
<StackLayout id="inner" margin="50" backgroundColor="blue" tap="onTap" isPassThroughParentEnabled="true">
<Button text="Active Button" id="button-active" tap="onTap" backgroundColor="whitesmoke" margin="20" height="100"/>
<Button isUserInteractionEnabled="false" text="DISABLED Button" id="button-disabled" tap="onTap" backgroundColor="gray" margin="20" height="100"/>
</StackLayout>
</GridLayout>
</GridLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment