You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The touch behavior in the parent view overrides the event on the nested view.
<VerticalStackLayout
Padding="30,0"
Spacing="25">
<VerticalStackLayout.Behaviors>
<mct:TouchBehavior PressedOpacity="0.5"/>
</VerticalStackLayout.Behaviors>
<Image
Source="dotnet_bot.png"
HeightRequest="185"
Aspect="AspectFit"
SemanticProperties.Description="dot net bot in a hovercraft number nine" />
<Label
Text="Hello, World!"
Style="{StaticResource Headline}"
SemanticProperties.HeadingLevel="Level1" />
<Label
Text="Welcome to .NET Multi-platform App UI"
Style="{StaticResource SubHeadline}"
SemanticProperties.HeadingLevel="Level2"
SemanticProperties.Description="Welcome to dot net Multi platform App U I" />
<Button
x:Name="CounterBtn"
Text="Click me"
SemanticProperties.Hint="Counts the number of times you click"
Clicked="OnCounterClicked"
HorizontalOptions="Fill" />
</VerticalStackLayout>
Expected Behavior
Click on the button should work when a touch behavior is set on the parent view.
Steps To Reproduce
Download the repo and run it.
Click on the button doesn't work while it should work.
Is there an existing issue for this?
Did you read the "Reporting a bug" section on Contributing file?
Current Behavior
The touch behavior in the parent view overrides the event on the nested view.
Expected Behavior
Click on the button should work when a touch behavior is set on the parent view.
Steps To Reproduce
Link to public reproduction project repository
https://github.com/arahmancsd/MauiTouchBehavior.git
Environment
Anything else?
A close issue #2385 shows it is resolved, but it isn't.
The text was updated successfully, but these errors were encountered: