XamEffects icon indicating copy to clipboard operation
XamEffects copied to clipboard

Question: button inside layout with effect

Open bodeg opened this issue 6 years ago • 5 comments

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

bodeg avatar Aug 29 '19 06:08 bodeg

Try delete InputTransparent="True" from button.

mrxten avatar Aug 29 '19 13:08 mrxten

Thanks for your reply.

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

bodeg avatar Sep 01 '19 14:09 bodeg

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

mrxten avatar Sep 02 '19 06:09 mrxten

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?

kochev avatar Sep 03 '19 02:09 kochev

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

mrxten avatar Oct 03 '19 11:10 mrxten