Giter Site home page Giter Site logo

Comments (16)

UdayaDevConsole avatar UdayaDevConsole commented on June 2, 2024

from cardview.

UdayaDevConsole avatar UdayaDevConsole commented on June 2, 2024

from cardview.

AndreiMisiukevich avatar AndreiMisiukevich commented on June 2, 2024

Hello Uday, unfortunately, I can't help you without a reproduction sample and video.

from cardview.

UdayaDevConsole avatar UdayaDevConsole commented on June 2, 2024

Hi @AndreiMisiukevich ... Here i Attached Reference Image .
i showed Multiple Carousel in Single Page. It Properly Showed Under Section But Frame Content Wrongly Showed Other Section Content When i Refresh the Collection View After Few Second it Properly Showed..
The Issue Was Only on Xamarin IOS.. i also tried IsViewReusingEnabled="False" This is also Not Working For Ios

Expectation : Content Show Proper Under Section When We Refresh the View on CollectionView
CarouselCacheRefreshIssue

from cardview.

UdayaDevConsole avatar UdayaDevConsole commented on June 2, 2024

@AndreiMisiukevich Also It Working Fine on Emulator and simulator But Issue on Deployment

from cardview.

AndreiMisiukevich avatar AndreiMisiukevich commented on June 2, 2024

Hm, that's weird. If it works fine on iOS simulator then it should on real Device.

Can it be some Xamarin bug?
Can you try to run the app on real device with linter disabled?

from cardview.

AndreiMisiukevich avatar AndreiMisiukevich commented on June 2, 2024

Looks like collection view reorders items for a while.
We don't control this process from collection view

from cardview.

UdayaDevConsole avatar UdayaDevConsole commented on June 2, 2024

so how to cache clear on collectionView

from cardview.

AndreiMisiukevich avatar AndreiMisiukevich commented on June 2, 2024

I propose to fully recreate items source

from cardview.

UdayaDevConsole avatar UdayaDevConsole commented on June 2, 2024

Sorry .i couldn't understood . Can u explain briefly?

from cardview.

UdayaDevConsole avatar UdayaDevConsole commented on June 2, 2024

While Refresh the View What i do to ?
i am Using Observable Collection for DataBinding
CollView.ItemSource = RefreshData.ToList()

from cardview.

AndreiMisiukevich avatar AndreiMisiukevich commented on June 2, 2024

What is inside RefreshData?
Views or just items?

I mean, do you use ItemTemplate? Or add views directly to itemssource?

Also, you can try something so hacky.

Using code behind, remove your collection view from page and then add it again (on refresh). Or optionally recreate a new instance of collection view

from cardview.

UdayaDevConsole avatar UdayaDevConsole commented on June 2, 2024

i am using item Template and Data assign Using itemsource directly from c# Like below Mentioned
XAML :

<StackLayout>
   <RefreshView>
      <CollectionView x:Name="CollView">
         <CollectionView.ItemTemplate>
           <DataTemplate>
               <cards:CarouselView>
                  <cards:CarouselView.ItemTemplate>
                    <DataTemplate>
                       <Frame/>
                    </DataTemplate>
                  </cards:CarouselView.ItemTemplate>
               </cards:CarouselView>
          </DataTemplate>
      </CollectionView.ItemTemplate>
   </CollectionView>
  </RefreshView>
</StackLayout>

C# :
CollView.ItemSource = RefreshData.ToList()

from cardview.

UdayaDevConsole avatar UdayaDevConsole commented on June 2, 2024

@AndreiMisiukevich can u have sample for ",remove your collection view from page and then add it again (on refresh). Or optionally recreate a new instance of collection view" ?

from cardview.

UdayaDevConsole avatar UdayaDevConsole commented on June 2, 2024

Hi @AndreiMisiukevich
i think its not collection view problem because Issue When i Scrolldown to bottom these way also occur same issue
something wrong on carousel

from cardview.

AndreiMisiukevich avatar AndreiMisiukevich commented on June 2, 2024

@UdayaDevConsole xamarin/Xamarin.Forms#13045
it can be collectionview recycling issue
Try to change collectionview to listview and set strategy to retain element instead recycling

from cardview.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.