New features and controls in Xamarin Forms 4.3 and 4.4, including CollectionView, RefreshView, CarouselView, IndicatorView and SwipeView. Associated code is here:
https://github.com/AlecDTucker/MonkeyFestAustralia2020
2. Agenda
• What’s New
• CollectionView
• RefreshView
• CarouselView
• IndicatorView
• SwipeView
• Community Contributions
3. CollectionView
• Horizontal scrolling
• Simpler visual tree => simpler code – no more cells
• EmptyView, EmptyViewTemplate
• No RowHeight or HasUnevenRows Use ItemSizingStrategy
• Perf Tip: Use MeasureFirstItem if all cells are the same size
• No built in separators
• Use a BoxView in your ItemTemplate
4. CollectionView
• Infinite scrolling with RemainingItemsThresholdReachedCommand
• If RemainingItemsThreshold = 0, this command will execute as the user reaches the
bottom of the list
• Set RemainingItemsThreshold to a positive number to execute the command when
there are that many items left to scroll
• Snap into position using SnapPointsType and SnapPointsAlignment
• SnapPointsType.None, .Mandatory, .MandatorySingle
• SnapPointsAlignment.Start, .Center, .End
• Multiple layouts
• Vertical / Horizontal List
• Vertical / Horizontal Grid
• No direct support for PullToRefresh...
8. CarouselView
• Long missing from Xamarin Forms
• Multiple third party attempts
• Rebuilt based on CollectionView
• Improved performance
• Swipe between items
• Also has EmptyView
13. Other Nuggets
• Editor
• IsTextPredictionEnabled
• More fast renderers
• Label
• TextType – supports html
• Image
• Gif support
14. Community Contributions
• Contributions from 34 devs, including
• Placeholder text alignment
• Letter spacing
• Multiple fixes for UWP, Tizen, WPF
• Also keep an eye out for Peter Foot’s MediaViewer control
• Embedded video, audio