Comments (7)
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.
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.
@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.
@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.
@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.
I'll close this one as Xamarin.Forms.ListView doesn't support that.
from dltoolkit.forms.controls.
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)
- UWP, Disable row highlight does not work. HOT 1
- DLToolkit.Forms.Controls.FlowListView not working in UWP
- ImageCropView: "Can not access a closed stream." HOT 1
- How do you use FlowListView with design time data
- UWP issue - FlowLoadingCommand keeps loading 5 times ahead of the page size
- Footer is suddenly missing after updating Xamarin.Forms
- Does not move or zoom in XF 4 HOT 2
- Long pressing AND tap command in a list item using effects ?
- ImageCircleCrop Pan and Pinch doesnt seem to be working with latest version HOT 1
- Unable to spy items with Appium HOT 1
- Long tap event with FlowListView
- TagEntryView loses focus when a new tag is added on UWP.
- Extra new elements from OnElementChanged in UIView on iOS HOT 6
- Binding subproperty of object to FlowItemsSource throws NullRefenceException HOT 1
- Creating sections with different layouts but no grouping
- Add column in Flowlistview
- Heavy lags when connected with debugger to Android on VS2019 16.9.2 and newer HOT 2
- it won't work with ios 15 anymore, are you planning to fix it?
- Since ios 15 reload from event handler leads to immense flickering! HOT 2
- InfiniteScroll, binding FlowTotalRecords doesn't work
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dltoolkit.forms.controls.