The .NET MAUI Community Toolkit is a community-created library that contains .NET MAUI Extensions, Advanced UI/UX Controls, and Behaviors to help make your life as a .NET MAUI developer easier
Applying the TouchBehavior to a ContentView (at least on Windows) - when the hover state is complete the view retains the configured HoveredBackgroundColor and does not restore the original ContentView color. I've tried on a few controls, seems to be ContentView specific so far.
Expected Behavior
When the hover completes the original state of the view should be restored.
Steps To Reproduce
Open and run the attached repro.
Mouse over the image at the top.
Mouse away from the image at the top.
Notice the result is this red background color that does not go away:
<!-- Only change to the template empty project code is this ContentView with the TouchBehavior added around the Image -->
<ContentView>
<ContentView.Behaviors>
<toolkit:TouchBehavior
HoveredBackgroundColor="#88ff0000"/>
</ContentView.Behaviors>
<Image
Source="dotnet_bot.png"
HeightRequest="185"
Aspect="AspectFit"
SemanticProperties.Description="dot net bot in a race car number eight" />
</ContentView>
Is there an existing issue for this?
Did you read the "Reporting a bug" section on Contributing file?
Current Behavior
Applying the TouchBehavior to a ContentView (at least on Windows) - when the hover state is complete the view retains the configured HoveredBackgroundColor and does not restore the original ContentView color. I've tried on a few controls, seems to be ContentView specific so far.
Expected Behavior
When the hover completes the original state of the view should be restored.
Steps To Reproduce
Link to public reproduction project repository
https://github.com/DennisWelu/MctTouchBehaviorContentView
Environment
Anything else?
No response