How to disable the ripple effect in header of .NET MAUI Expander?
In the .NET MAUI Expander, you can customize the ripple effects applied when tapping the header by modifying the theme key resources for the Expander.
XAML
To disable the ripple effect, set the ripple background to transparent within your XAML file.
<ContentPage xmlns:syncfusion="clr- namespace:Syncfusion.Maui.Expander;assembly=Syncfusion.Maui.Expander"
xmlns:syncTheme="clr-namespace:Syncfusion.Maui.Themes;assembly=Syncfusion.Maui.Core"
x:Class="ExpanderMAUI.MainPage">
<ContentPage.Resources>
<syncTheme:SyncfusionThemeDictionary>
<syncTheme:SyncfusionThemeDictionary.MergedDictionaries>
<ResourceDictionary>
<x:String x:Key="SfExpanderTheme">CustomTheme</x:String>
<Color x:Key="SfExpanderHeaderRippleBackground">Transparent</Color>
</ResourceDictionary>
</syncTheme:SyncfusionThemeDictionary.MergedDictionaries>
</syncTheme:SyncfusionThemeDictionary>
</ContentPage.Resources>
</ContentPage >
Download the complete sample from GitHub.
Conclusion
I hope you enjoyed learning how to disable the ripple effect in the header of .NET MAUI Expander.
You can refer to our .NET MAUI Expander feature tour page to know about its other groundbreaking feature representations and documentation, and how to quickly get started with configuration specifications. Explore our .NET MAUI Expander example to understand how to create and manipulate data.
Check out our components from the License and Downloads page for current customers. If you are new to Syncfusion®, try our 30-day free trial to check out our other controls. Please let us know in the comments section if you have any queries or require clarification.
You can also contact us through our support forums, Direct-Trac, or feedback portal. We are always happy to assist you!