-
Notifications
You must be signed in to change notification settings - Fork 380
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
[BUG] TapGestureRecognizer
not triggered when in combination with TouchBehavior
and Border.Shadow
#2165
Comments
Why can't you just use the |
|
I agree with point 4 but I was just trying to find a simpler solution for you. Can you set the |
Unfortunately no. Stacktrace
my code <Border
Grid.RowSpan="2"
Grid.Column="1"
Margin="0,40,0,0"
HorizontalOptions="Center">
<Border.Behaviors>
<toolkit:TouchBehavior
BindingContext="{Binding Source={RelativeSource AncestorType={x:Type viewmodels:MyViewModel}}}"
Command="{Binding MyCommand}"
HoveredOpacity="0.8"
HoveredScale="0.9"
PressedOpacity="0.6"
PressedScale="0.8" />
</Border.Behaviors>
<!--<Border.GestureRecognizers>
<TapGestureRecognizer Command="{Binding Source={RelativeSource AncestorType={x:Type viewmodels:MyViewModel}}, Path=MyCommand}" />
</Border.GestureRecognizers>-->
<Image Source="{Binding MyModel, Converter={StaticResource myConverter}}" />
</Border> |
@FroggieFrog that one could be this issue - #1783 |
Is there an existing issue for this?
Did you read the "Reporting a bug" section on Contributing file?
Current Behavior
A
TapGestureRecognizer
is not triggered when used in combination with aTouchBehavior
and inside of aBorder
with aShadow
.Expected Behavior
The
TapGestureRecognizer
is triggeredSteps To Reproduce
Toast
when clicked on the second imageLink to public reproduction project repository
https://github.com/FroggieFrog/BugMauiShadowTouch
Environment
Anything else?
The text was updated successfully, but these errors were encountered: