Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TabbedPage + Data Template will crash on switching tab #26811

Closed
ReneeGA2020 opened this issue Dec 25, 2024 · 2 comments
Closed

TabbedPage + Data Template will crash on switching tab #26811

ReneeGA2020 opened this issue Dec 25, 2024 · 2 comments
Labels
t/bug Something isn't working

Comments

@ReneeGA2020
Copy link

Description

I failed to make TabbedPage work with Data Template.
This thing worked in an earlier version of MAUI years ago.

Steps to Reproduce

  1. Create New MAUI app
  2. Use Page Window instead of shell.
  3. Add a simple TabbedPage with data Template
<TabbedPage.ItemsSource>
    <x:Array Type="{x:Type x:String}">
        <x:String>Home</x:String>
        <x:String>Settings</x:String>
    </x:Array>
</TabbedPage.ItemsSource>
<TabbedPage.ItemTemplate>
    <DataTemplate>
        <ContentPage Title="{Binding}">
            <Label Text="{Binding}"/>
        </ContentPage>
    </DataTemplate>
</TabbedPage.ItemTemplate>
  1. Run the app
  2. Switch to another tab
    Result->Crash

Link to public reproduction project repository

https://github.com/ReneeGA2020/TabbedPageDataTemplateBug

Version with bug

9.0.21 SR2.1

Is this a regression from previous behavior?

Yes, this used to work in .NET MAUI

Last version that worked well

No response

Affected platforms

Windows

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

@ReneeGA2020 ReneeGA2020 added the t/bug Something isn't working label Dec 25, 2024
Copy link

We've found some similar issues:

If any of the above are duplicates, please consider closing this issue out and adding additional context in the original issue.

Note: You can give me feedback by 👍 or 👎 this comment.

@jfversluis
Copy link
Member

Duplicate of #14572

@jfversluis jfversluis marked this as a duplicate of #14572 Dec 25, 2024
@jfversluis jfversluis closed this as not planned Won't fix, can't repro, duplicate, stale Dec 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants