question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

FlowListView - questions

See original GitHub issue
  1. Can I specify a DataTemplate for the cell? I see it only works with the FlowColumnTemplateSelector but this one returns Type which later used to create the instance like this: var view = (View)Activator.CreateInstance(columnTypes[i]);
  2. If I change the width and height of a cell, does it refresh correctly?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:25 (12 by maintainers)

github_iconTop GitHub Comments

2reactions
jamesl77commented, Oct 5, 2016

DataTemplateSelector derives from DataTemplate. So I think you can just have one property called DataTemplate FlowItemTemplate. Xamarin Forms ListView does it like this for the ItemTemplate property: https://blog.xamarin.com/customizing-list-view-cells-xamarin-forms-datatemplateselector/

Optionally, if you want to offer the ability to select based on item’s index, you could have a FlowItemTemplateSelector which looks like this:

public abstract class FlowItemTemplateSelector : DataTemplate
{
         public abstract DataTemplate SelectTemplate(int index, object item);
}

I am not sure about having both FlowColumnCount and FlowAutoColumnCount. Maybe have just int? FlowColumnCount which by default is null, meaning control auto computes the number of columns based on FlowLisView’s width and flow item’s width. I would change FlowColumnDefaultMinimumWidth to just int? FlowColumnWidth. If it’s null and you need item width, use the item’s MinimumWidth.

1reaction
daniel-luberdacommented, Oct 6, 2016
<flv:FlowListView FlowColumnCount="3" FlowItemsSource="{Binding Items}" 
    SeparatorVisibility="None" HasUnevenRows="false"
    FlowItemTappedCommand="{Binding ItemTappedCommand}" FlowLastTappedItem="{Binding LastTappedItem}">

    <flv:FlowListView.FlowColumnTemplate>
        <DataTemplate>
            <Label HorizontalOptions="Fill" VerticalOptions="Fill" 
                XAlign="Center" YAlign="Center" Text="{Binding Title}"/>
        </DataTemplate>
    </flv:FlowListView.FlowColumnTemplate>

</flv:FlowListView>     

It also supports DataTemplateSelector. Testers are welcome.

Read more comments on GitHub >

github_iconTop Results From Across the Web

FlowListView not working correctly with a simple example
It works ok with a basic Xamarin ListView but when switched over to FLowListView it only shows the correct number of rows but...
Read more >
Remove title FlowListView sample - Microsoft Q&A
i tried the FlowListView to this screen, everything works the way I want it, except the text "DLToolkit.From.Controls.FlowGroup".
Read more >
How to pull metadata related to Flow Listview?
I have a Flow Listview that I'd like to add to my repository. Does anybody know what is the name of the ......
Read more >
DLToolkit.Forms.Controls.FlowListView 2.0.11
Find out the service status of NuGet.org and its related services. FAQ. Read the Frequently Asked Questions about NuGet and see if your...
Read more >
NuGet Package FlowListView Plugin for Xamarin.Forms
Ask any FlowListView Plugin for Xamarin.Forms Questions and Get Instant Answers from ChatGPT AI: ChatGPT answer me!
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found