Last active
August 14, 2019 12:25
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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