Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: button inside layout with effect #36

Open
bodeg opened this issue Aug 29, 2019 · 5 comments
Open

Question: button inside layout with effect #36

bodeg opened this issue Aug 29, 2019 · 5 comments

Comments

@bodeg
Copy link

bodeg commented Aug 29, 2019

Thanks for the great plugin

In the following code snippet, the LongTap command works properly.
What should I do to make the button to response and call its command?

BTW - in my case, the Frame is inside a ViewCell of a ListView

<Frame BackgroundColor="White"
       BorderColor="Black">
    <StackLayout
        xamEffects:Commands.LongTap="{Binding DebugCommand}"
        xamEffects:Commands.LongTapParameter="long tap command">


        <Label Text="I am a label" />
        <Button Text="Click Me"
                InputTransparent="True"
                Command="{Binding DebugCommand}"
                CommandParameter="button command" />

    </StackLayout>
</Frame>

With regards

@mrxten
Copy link
Owner

mrxten commented Aug 29, 2019

Try delete InputTransparent="True" from button.

@bodeg
Copy link
Author

bodeg commented Sep 1, 2019

Thanks for your reply.

With or without InputTransparent attribute - the button does not call its command.
Any idea?

@mrxten
Copy link
Owner

mrxten commented Sep 2, 2019

I will fix this in next release.

Now this package configuring InputTransparent himself sometime.

As hotfix you can subscribe to PropertyChanged event in button and determine when changed InputTransparent and change to false yourself

@kochev
Copy link

kochev commented Sep 3, 2019

As hotfix you can subscribe to PropertyChanged event in button and determine when changed InputTransparent and change to false yourself

This WA not working. Button unclicable.
When will the fix be released?

@mrxten
Copy link
Owner

mrxten commented Oct 3, 2019

Dont know, have not time now ¯_(ツ)_/¯

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants