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

[Windows]CollectionView not show Header and Footer #17499

Closed
eliasribeiro opened this issue Sep 20, 2023 · 1 comment
Closed

[Windows]CollectionView not show Header and Footer #17499

eliasribeiro opened this issue Sep 20, 2023 · 1 comment
Labels
area-controls-collectionview CollectionView, CarouselView, IndicatorView migration-compatibility Xamarin.Forms to .NET MAUI Migration, Upgrade Assistant, Try-Convert platform/windows 🪟 t/bug Something isn't working

Comments

@eliasribeiro
Copy link

Description

In Windows platform CollectionView not show Header and Footer.

Below is an example running on Android and Windows.
CollectionView fw

Steps to Reproduce

  1. Create a new Maui Project.
  2. Create a CollectionView on the MainPage like this:
<CollectionView>
    <CollectionView.ItemsSource>
        <x:Array Type="{x:Type x:String}">
            <x:String>Item 1</x:String>
            <x:String>Item 2</x:String>
        </x:Array>
    </CollectionView.ItemsSource>
    <CollectionView.Header>
        <Label Text="Header" />
    </CollectionView.Header>
    <CollectionView.ItemTemplate>
        <DataTemplate>
            <Label Text="{Binding .}" />
        </DataTemplate>
    </CollectionView.ItemTemplate>
    <CollectionView.Footer>
        <Label Text="Footer" />
    </CollectionView.Footer>
</CollectionView>
  1. Run in Windows.

Link to public reproduction project repository

No response

Version with bug

8.0.0-rc.1.9171

Is this a regression from previous behavior?

Yes, this used to work in Xamarin.Forms, No, this is something new

Last version that worked well

Unknown/Other

Affected platforms

Windows

Affected platform versions

WinUI 3

Did you find any workaround?

I found no other alternative

Relevant log output

No response

@eliasribeiro eliasribeiro added the t/bug Something isn't working label Sep 20, 2023
@drasticactions
Copy link
Contributor

This should be fixed with #17499,

It's not in RC1, but should work with Main and whenever RC2 gets released. If you try this against Main and have issues, feel free to reopen this.

@drasticactions drasticactions closed this as not planned Won't fix, can't repro, duplicate, stale Sep 20, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Oct 20, 2023
@samhouts samhouts added the migration-compatibility Xamarin.Forms to .NET MAUI Migration, Upgrade Assistant, Try-Convert label Dec 12, 2023
@samhouts samhouts added platform/windows 🪟 area-controls-collectionview CollectionView, CarouselView, IndicatorView labels Feb 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-controls-collectionview CollectionView, CarouselView, IndicatorView migration-compatibility Xamarin.Forms to .NET MAUI Migration, Upgrade Assistant, Try-Convert platform/windows 🪟 t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants