Rendering of List View Header and Footer
See original GitHub issueReproduction: Set a View Element as header for a list view:
let view (model: Model) _ =
View.ContentPage(
content =
View.ListView(
model.Items |> List.map (fun item -> View.Label(text = item)),
header = View.Label(text = "I am a header.")
)
)
This results in:
So it seems there’s a ToString()
involved somewhere … Sample: FabulousListViewHeaderBug.zip
- Fabulous 0.33.2
- iOS + Android
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Rendering of List View Header and Footer · Issue #407
Reproduction: Set a View Element as header for a list view: let view (model: Model) _ = View.ContentPage( content = View.ListView( model.
Read more >Microsoft Lists formatting with header and footer settings
Review options for header and footer settings, for groups and entire ... -customization/ view -formatting • Repo - SharePoint List Formatting ...
Read more >Header and Footer in Xamarin ListView (SfListView)
The SfListView allows to position the footer item by using the StickyFooterPosition property. The StickyFooterPosition property has two options: Body: The ...
Read more >ListView Appearance - Xamarin
This article explains how to customize ListViews in Xamarin.Forms applications by using headers, footers, groups, and variable height cells.
Read more >ListView Header and Footer not appearing
I have following listview within a content page. Data binds fine, but header and footer never appears. ... Even if I enable grouping...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I did see several mentions of this issue on Slack. We are indeed doing nothing to the value passed to Header/Footer and thus Xamarin.Forms is clueless about ViewElement and calls its
ToString()
methodI added a converter which will first call
ViewElement.Create()
before setting the properties Header/FooterMakes sense! I’m closing this issue as the “fix” is coming and the workaround is available anyway.