Coder Social home page Coder Social logo

Comments (7)

daniel-luberda avatar daniel-luberda commented on August 10, 2024

It's simple. FlowListView doesn't use ViewCell as a base, but a standard View. So just subclass View in your custom platform specific cells. That's all.

However it uses its own ViewCell under the hood. See this: https://github.com/daniel-luberda/DLToolkit.Forms.Controls/blob/master/FlowListView/DLToolkit.Forms.Controls.FlowListView/FlowListViewInternalCell.cs

from dltoolkit.forms.controls.

julyorange avatar julyorange commented on August 10, 2024

Hello Daniel

I am using FlowListView and I use my custom views without classic ViewCell. I need to implement contextual options in xaml as demonstrating in https://developer.xamarin.com/guides/xamarin-forms/user-interface/listview/interactivity/#XAML

As FlowListView does not use classic ViewCell , I am unable to reach its ViewCell.ContextActions property. https://developer.xamarin.com/api/type/Xamarin.Forms.Cell/#Public_Properties
How would you suggest to use your customized FlowListViewInternalCell that extends ViewCell in order to access this property ? (By xaml or by code)
Thank you by advance for your help !

from dltoolkit.forms.controls.

daniel-luberda avatar daniel-luberda commented on August 10, 2024

@julyorange I could expose that, but the problem is ContextActions will be called for the entire row, not single item (items are implemented inside ListView's row).

You could access all ViewCell properties easily by creating custom renderer for FlowListViewInternalCell. Did you try that?

from dltoolkit.forms.controls.

julyorange avatar julyorange commented on August 10, 2024

@daniel-luberda Thank you for your answer and justification about entire row.
Indeed, a ViewCellRenderer on FlowListViewInternalCell enables me to access ViewCell object, but this object always targets the entire row of base ListView but not single items on "grid" FlowListView .
I did not manage to see contextual menu appears by setting ContextActions in my custom renderer. :(
Correct me if I am wrong but it seems that it's not possible to implement contextual actions on a single item when I am using FlowListView as a grid ?

from dltoolkit.forms.controls.

daniel-luberda avatar daniel-luberda commented on August 10, 2024

@julyorange You're right, it's not implemented.

but this object always targets the entire row of base ListView but not single items on "grid" FlowListView .

FlowListView inherits from ListView, which is based on native controls for displaying list views, they only do support context actions for a single row - that's the problem. You could use something like ACR user dialogs for now though.

from dltoolkit.forms.controls.

daniel-luberda avatar daniel-luberda commented on August 10, 2024

I'll close this one as Xamarin.Forms.ListView doesn't support that.

from dltoolkit.forms.controls.

gurw avatar gurw commented on August 10, 2024

Hello , sir I am Using Flow List View Nuget For all platforms But in This list view i not Found the Selected item and the tapped item Background color change the depend on Delay time please add the FlowSelectedItem Event and Background color change only Selected item its not depend on Delay time Its depend on when the User Click next item Click then previous selected item color to reset and selected item color to update

from dltoolkit.forms.controls.

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.