Welcome to the .NET MAUI feedback portal. We’re happy you’re here! If you have feedback on how to improve the .NET MAUI, we’d love to hear it!

  • Check out the features or bugs others have reported and vote on your favorites. Feedback will be prioritized based on popularity.
  • If you have feedback that’s not listed yet, submit your own.

Thanks for joining our community and helping improve Syncfusion products!

1
Vote

When we use simple text content on SfExpander, there is no performance lag(taking no time to open expander content), but if SfExpander content loaded with CollectionView which contains more than two image button and label, there is performance delay.


Performance difference can be seen from ripple effect on tapping the header content of sfexpander.(For simple text content, ripple effect will be quick and content will be shown immediately. With our custom content, ripple effect will be laggy and  content will be shown with some delay)


Code snippet:


  <expander:SfExpander BackgroundColor="{StaticResource White}"
                                     IsExpanded="{TemplateBinding IsExpanded}"
                                     AnimationDuration="300"
                                     AnimationEasing="SinInOut"
                                     HeaderIconPosition="None">
                    <expander:SfExpander.Header>
                        <Grid ColumnDefinitions="Auto, *"
                              HeightRequest="56"
                              Padding="16, 12">
                            <Label Grid.Column="0"
                                   Text="{TemplateBinding HeaderTitle}"
                                   Style="{StaticResource Body1}"
                                   TextColor="{StaticResource Gray600}"
                                   FontFamily="{StaticResource SemiboldFont}"
                                   VerticalOptions="Center" />
                            <Image Grid.Column="1"
                                   HorizontalOptions="End"
                                   Source="{TemplateBinding IsExpanded, Converter={StaticResource BoolToImageConverter}}" />
                        </Grid>
                    </expander:SfExpander.Header>
                    <expander:SfExpander.Content>
                        <CollectionView ItemsSource="{TemplateBinding ItemsSource}">
                            <CollectionView.ItemTemplate>
                                <DataTemplate>
                                    <Grid BackgroundColor="{StaticResource Gray300}">
                                        <Grid ColumnDefinitions="Auto, Auto, *"
                                              RowDefinitions="Auto,Auto"
                                              Margin="0,0,0,1"
                                              BackgroundColor="{StaticResource Gray200}"
                                              ColumnSpacing="12"
                                              Padding="16, 12">
                                            <Border Grid.Column="0"
                                                    BackgroundColor="{StaticResource White}"
                                                    Padding="8"
                                                    StrokeShape="RoundRectangle, 32">
                                                <Border.Shadow>
                                                    <Shadow Offset="2,2"
                                                            Radius="6"
                                                            Opacity="0.12"
                                                            Brush="Black" />
                                                </Border.Shadow>
                                                <Image Source="{Binding Icon}"
                                                       WidthRequest="32"
                                                       HeightRequest="32"
                                                       Aspect="AspectFit" />
                                            </Border>
                                            <Label Text="{Binding Title}"
                                                   Style="{StaticResource Body1}"
                                                   FontFamily="{StaticResource SemiboldFont}"
                                                   Grid.Column="1"
                                                   TextColor="{StaticResource Primary}"
                                                   VerticalOptions="Center" />
                                            <ImageButton Source="{StaticResource DownloadIcon}"
                                                         Grid.Column="2"
                                                         HorizontalOptions="End" />
                                        </Grid>
                                    </Grid>
                                </DataTemplate>
                            </CollectionView.ItemTemplate>
                        </CollectionView>
                    </expander:SfExpander.Content>
                </expander:SfExpander>