CollectionView GroupHeaderTemplate controls inside incorrectly show/hide after reusing dataTemplate #26150
Labels
area-controls-collectionview
CollectionView, CarouselView, IndicatorView
platform/iOS 🍎
s/needs-repro
Attach a solution or code which reproduces the issue
t/bug
Something isn't working
Description
I have grouped collectionview(group header is expandable). When header is not expanded, it should have border(use BoxView for it) and hide it, when expand. When header item is reused, BoxView can be hidden, even if should be shown
Steps to Reproduce
<CollectionView IsGrouped="True" ItemsSource="{Binding Items}" ItemTemplate="{StaticResource ItemSelector}" GroupHeaderTemplate="{StaticResource ExpanderTemplate}"/> <DataTemplate x:Key="ExpanderTemplate" x:DataType="activity:Group"> <Grid Padding="24,8" RowDefinitions="40,1" ColumnDefinitions="Auto,*,Auto" BackgroundColor="{StaticResource Global-Colors-DX-White}"> .. Content... <BoxView Grid.Row="1" Grid.ColumnSpan="3" IsVisible="{Binding BorderVisible}" BackgroundColor="{StaticResource Global-Colors-DX-Light-Gray}"/> </Grid> </DataTemplate>
Link to public reproduction project repository
No response
Version with bug
8.0.92 SR9.2
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
iOS
Affected platform versions
iOS 17.5
Did you find any workaround?
No response
Relevant log output
The text was updated successfully, but these errors were encountered: