CollectionViewHandler2 RelativeSource binding to AncestorType not working #26066
Labels
area-controls-collectionview
CollectionView, CarouselView, IndicatorView
p/2
Work that is important, but is currently not scheduled for release
platform/iOS 🍎
potential-regression
This issue described a possible regression on a currently supported version., verification pending
t/bug
Something isn't working
Milestone
Description
Using RelativeSource binding AncestorType doesn't seem to work using CollectionViewHandler2
Steps to Reproduce
See the RelativeSourceBindingPage in the attached reproduction repository
CollectionViewHandler2Bugs/Pages/RelativeSourceBindingPage.xaml
Link to public reproduction project repository
https://github.com/rysbilinski/CollectionViewHandler2Bugs
Version with bug
9.0.10 SR1
Is this a regression from previous behavior?
Yes, this used to work in .NET MAUI
Last version that worked well
8.0.100 SR10
Affected platforms
iOS
Affected platform versions
No response
Did you find any workaround?
If you use the normal CollectionViewHandler then the binding works as expected
builder
.UseMauiApp().ConfigureFonts(fonts =>
{
fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold");
})
.UseMauiCommunityToolkit();
//#if IOS || MACCATALYST
// builder.ConfigureMauiHandlers(handlers =>
// {
// handlers.AddHandler<Microsoft.Maui.Controls.CollectionView, Microsoft.Maui.Controls.Handlers.Items2.CollectionViewHandler2>();
// handlers.AddHandler<Microsoft.Maui.Controls.CarouselView, Microsoft.Maui.Controls.Handlers.Items2.CarouselViewHandler2>();
// });
//#endif
The text was updated successfully, but these errors were encountered: