Skip to content

[Feature Request] Consider Ripple Effect applied when segment item template added #103

@Jeyasri-Murugan

Description

@Jeyasri-Murugan

Description

Objective:
Enhance the SegmentedControl by introducing the ability to apply a Ripple Effect on the segment item template when a segment item is selected or interacted with.

Public API Changes

IsRippleEnabled="True" for Segment Item Template

<ContentPage   
    xmlns:segmentedControl="clr-namespace:Syncfusion.Maui.Toolkit.SegmentedControl;assembly=Syncfusion.Maui.Toolkit">
    <segmentedControl:SfSegmentedControl IsRippleEnabled="True">
        <segmentedControl:SfSegmentedControl.ItemsSource>
            <x:Array Type="{x:Type x:String}">                
                <x:String>Day</x:String>                
                <x:String>Week</x:String>
                <x:String>Month</x:String>
                <x:String>Year</x:String>
            </x:Array>
        </segmentedControl:SfSegmentedControl.ItemsSource>
        <segmentedControl:SfSegmentedControl.SegmentTemplate>
            <DataTemplate>
                <Grid Background="LightGray">
                    <Label Text="{Binding Text}"
                           TextColor="Red"
                           Margin="6"/>
                </Grid>
            </DataTemplate>
        </segmentedControl:SfSegmentedControl.SegmentTemplate>
    </segmentedControl:SfSegmentedControl>
</ContentPage>

Intended Use-Case

Add ripple effects for when selecting the segment item template added to enhance user experience.

Metadata

Metadata

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions