-
Notifications
You must be signed in to change notification settings - Fork 1.9k
BindableLayout.ItemsSource no longer works in 8.0.61 #23491
Copy link
Copy link
Closed
Labels
area-layoutStackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenterStackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenteri/regressionThis issue described a confirmed regression on a currently supported versionThis issue described a confirmed regression on a currently supported versionpartner/syncfusionIssues / PR's with Syncfusion collaborationIssues / PR's with Syncfusion collaborationplatform/windowss/triagedIssue has been reviewedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering TriageVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't workingSomething isn't working
Milestone
Description
Description
After updating the Microsoft.Maui.Controls.Compatibility and Microsoft.Maui.Controls packages to version 8.0.61, a view of the BindableLayout.ItemsSource stopped working. The data linked to the binding was not configured correctly,
I went back to version 8.0.21 and resolved
<Grid>
<ScrollView>
<FlexLayout>
<!-- Header -->
<VerticalStackLayout>
<Grid>
<BoxView BackgroundColor="#3255e2" HeightRequest="64"/>
<Label Text="Avaliações" FontSize="24"/>
</Grid>
<HorizontalStackLayout BackgroundColor="#202380" Padding="10">
<Button Text="Inicio"/>
<Button Text="Filmes" />
<Button Text="Séries"/>
<Button Text="Livros"/>
<Button Text="Musicas"/>
</HorizontalStackLayout>
</VerticalStackLayout>
<!-- Body -->
<FlexLayout FlexLayout.Grow="1"
Wrap="Wrap"
JustifyContent="Start"
BindableLayout.ItemsSource="{Binding Assessments}"
Margin="10"
ZIndex="4">
<!-- Content -->
<BindableLayout.ItemTemplate>
<DataTemplate>
<VerticalStackLayout>
<Frame CornerRadius="10"
HasShadow="True"
BorderColor="White"
WidthRequest="160"
HeightRequest="240"
Padding="0"
Margin="10">
<Image Source="{Binding Image}"
x:Name="ImageCard"
Aspect="AspectFill"
MaximumWidthRequest="160"
MaximumHeightRequest="240">
<Image.GestureRecognizers>
<PointerGestureRecognizer PointerEntered="OnPointerEntered"
PointerExited="OnPointerExited"/>
<TapGestureRecognizer Command="{Binding BindingContext.DetailCommand,Source={x:Reference PaiPage}}"
CommandParameter="{Binding .}"/>
</Image.GestureRecognizers>
</Image>
</Frame>
</VerticalStackLayout>
</DataTemplate>
</BindableLayout.ItemTemplate>
</FlexLayout>
</FlexLayout>
</ScrollView>
</Grid>Steps to Reproduce
- Updated the versions of the
Microsoft.Maui.ControlsandMicrosoft.Maui.Controls.Compatibilitypackages to version 8.0.61. - My
FlexLayoutlayout was usingBindableLayout.ItemsSourceto bind the data. - After updating, the data did not appear on the page, although it was context-bound.
- I went back to version 8.0.21 and everything is back to normal.
Link to public Reproduction project repository
No response
Version with bug
8.0.40
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
8.0.40
Affected platforms
Windows
Affected platform versions
windows 10.0.17763.0
Did you find any workaround?
No response
Relevant log output
I didn't have any way outReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area-layoutStackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenterStackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenteri/regressionThis issue described a confirmed regression on a currently supported versionThis issue described a confirmed regression on a currently supported versionpartner/syncfusionIssues / PR's with Syncfusion collaborationIssues / PR's with Syncfusion collaborationplatform/windowss/triagedIssue has been reviewedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering TriageVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't workingSomething isn't working
Type
Projects
Status
Done