I am looking for a Parallax HeaderView for a ListView so that as you scroll the ListView, the Header expands or contracts.
Is there such a tool in Telerik? (I haven't seen it yet)
Ian
1 Answer, 1 is accepted
0
Lance | Manager Technical Support
Telerik team
answered on 16 Apr 2019, 05:09 PM
Hi Ian,
This isn't currently available in Xamarin.Forms, if you'd like the development team consider adding it as an official feature, submit a Feature Request in the UI for Xamarin Feedback Portal.
Custom Approach
If you access the native controls, you can implement this yourself on each platform.
I don't have any example of this in Android or iOS to share, but I'm sure there are some online. Be sure to keep the focus of the search to Xamarin.Android and Xamarin.iOS so that you get the correct API surface area. For example, here's one implementation for Android from Cheesebaron.
Implementation
Once you've devised a parallax solution, it's time to apply that to the native control. Here's the list of the native controls:
I highly recommend following the quick Platform Effect tutorials in the Xamarin Documentation on how to use a Platform Effect on an entry control. It will get you used to using the RoutingEffect registration and understand how they work. then you can move on to using it with a Telerik component.
At the very least, do the first two articles:
Custom Renderer
A custom renderer extends the default renderer, allowing you to further cusotmize the native control as it is being instantiated. In order to implement a Custom Renderer for a Telerik control, you'll need to implement a custom renderer on each platform that gives you access to that control.
As an example, this class lives in the Android project. The assembly attribute registers that renderer.
using Android.Content;
using Xamarin.Forms;
using Xamarin.Forms.Platform.Android;
// Register your custom renderer (first parameter is the XamarinForms control and the 2nd parameter is the the custom renderer
Telerik Support doesn't cover customization applied in renderers as it falls outside the scope of support, but if you have trouble using the renderer's features feel free to open a Support Ticket here and ask for a policy exeption.
I hope this information was helpful.
Regards,
Lance | Technical Support Engineer, Principal
Progress Telerik
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Feedback Portal
and vote to affect the priority of the items