Hello,
I am wondering if there is a way to access the ScrollY property when scrolling the SfAccordion. I set a PropertyChanging event for a ScrollView and I am able to see when the ScrollY changes. With the same implementation for the SfAccordion, it does not have a ScrollY property. Is there anyway to get access to this?
Thanks,
David
Hello,
Thank you for your response. The reason for the ScrollY property is the following:
On iOS, I have a toolbar (this is under the navigation bar; it is just a stacklayout with a few functions) and an SfAccordion underneath the toolbar. I have large titles on iOS enabled so that when I scroll down my SfAccordion the title becomes small, when I scroll to the top of the accordion it becomes big again. The problem is that when you try to scroll past the top of the accordion, it pulls down the title past the toolbar. I want the toolbar to pull down along with it and not be covered up. When the scrollY property becomes negative, I can translate the toolbar down with the “bounce” of the accordions scrollview.
Is there a better way to achieve this functionality?
Thanks,
David
Hello,
Thank you for the solution. I have been able to get the scrollY property and obtain the functionality that I wanted. However, I do have 1 more issue. When the page first appears, the accordion takes about a second to show up. The way I have fixed this is by setting the HeightRequest of the accordion inside of the listview to something really big (like 10000). When I do this, it shows up immediately. The problem with this is that it is not dynamic to the accordions content and the listview will scroll a long way past the accordion. Is there a way to set the height of the accordion exactly to the content?
I have tried setting “DynamicSizeMode=”Content””, but this does not work.
Thanks,
David