-
Notifications
You must be signed in to change notification settings - Fork 182
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Request: A few additional samples #2
Comments
Hi @ravensorb,
Sure. Could you give more details?
Horizontal scrolling is not supported as Xamarin.Forms |
I was looking over the sample and am having a little bit of a tough time figuring out how to use it :) Example:
|
What file are you referring to?:)
I'll upload some new better examples today. |
I suppose a link the specific file would help 😄 |
Column definitions (4 columns with 2 layout used multiple times). The new thing (not on nuget yet) is FlowAutomaticColumnCount with FlowAutomaticColumnMinimumWidth. You define just one column template and set it to true, and column number will be automatically calculated to fill container. |
FlowSelectors.CustomAdvancedTemplateSelector is advanced template selector (basing on current binding context - it can provide different template for a cell for every item) |
So do that mean if I have 6 columns, I need to define the type 6 times? Wouldn't it be easier to have it match a selector to an object type during binding -- that would allow more reuse (and less copy/pasting in the xaml) |
You can have one definition only with You don't need to define any type multiple times. Could you elaborate?:) Why selectors? It's because you can have any cell to have any type of view dynamically basing or binding context. I didn't find simpler way to do it and be compatible with XAML. |
I started to update some samples The simplest one is: C#XAML |
Forgive me if it's obvious, but is it possible to just define an inline column template rather than abstracting it out to a view? I'm trying to create a 3 column gallery similar to the previous request and it's not immediately clear to me. |
@TimeBomb006 You mean that you don't want to have view definition defined in a separate file? If yes it's not possible yet, but the new release will have this (standard Forms data templates). If you want to have auto generated column count just use FlowAutoColumnCount and FlowMinimumWidth, property and define just one column template. Column count will be calculated automatically then. |
Samples should be better now. |
Any chance you could add a few additional samples that show other types of configurations?
Thoughts on scenarios
The text was updated successfully, but these errors were encountered: