Comments (7)
Ah, I got it working thank you!
I love you plugins they are so well done!
from dltoolkit.forms.controls.
I'll need full code. Here's grouping example:
from dltoolkit.forms.controls.
In my XAML I have:
<controls:FlowListView Grid.Row="2" FlowColumnCount="1" SeparatorVisibility="None" HasUnevenRows="true" x:Name="ProjectFlow" BackgroundColor="Transparent" FlowUseAbsoluteLayoutInternally="True" IsGroupingEnabled="True"> </controls:FlowListView>
in my Code I have
` private void LoadEvents(MessageHelper arg)
{
if (App.IotaConnect.isConnected() == false)
{
UserDialogs.Instance.Alert(AppResource.NoInternet, AppResource.NoInternetTitle,
AppResource.OK);
return;
}
ProjectFlow.FlowColumnTemplate = new FlowTemplateSelector();
ProjectFlow.FlowItemsSource = arg.EventListV2.events;
LoadTabs(arg);
}`
My FlowTemplateSelector() is:
` public class FlowTemplateSelector : DLToolkit.Forms.Controls.FlowTemplateSelector
{
DataTemplate _eventCell = new DataTemplate(typeof(EventCellNew));
DataTemplate _celebCell = new DataTemplate(typeof(CelebCell));
DataTemplate _likeCell = new DataTemplate(typeof(LikeCell));
protected override DataTemplate OnSelectTemplate(object item, int columnIndex, BindableObject container)
{
var type = item.GetType();
if(type == typeof(ProjectById.Event))
{
return _eventCell;
}
if (type == typeof(FanBase.Event))
{
return _celebCell;
}
return _eventCell;
}
}`
But I put a breakpoint on var type = item.GetType(); and it never gets to it. If I put False for IsGroupingEnabled it will hit the breakpoint.
from dltoolkit.forms.controls.
You are missing FlowGroupDisplayBinding="{Binding Key}"
from dltoolkit.forms.controls.
I had it in there and it was still not hitting the template selector.
<controls:FlowListView Grid.Row="2" FlowColumnCount="1" SeparatorVisibility="None" HasUnevenRows="true" x:Name="ProjectFlow" BackgroundColor="Transparent" FlowUseAbsoluteLayoutInternally="True" IsGroupingEnabled="True" FlowGroupDisplayBinding="{Binding Key}" FlowGroupShortNameBinding="{Binding Key}"> </controls:FlowListView>
from dltoolkit.forms.controls.
Does your model have a valid Key
property? You can clone repo and test sample project to see what is missing or put your code there.
from dltoolkit.forms.controls.
Great, nice that you worked it out :)
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.