sfTabView problem with sfAccordion

Good afternoon, I have sftabview that contains an expander: SfAccordion, the problem is that the Accordion is not displayed in full size, only a small piece is visible.
I put a label "HOLA" to see if it also disappeared, but it is only a problem of the sfAccordion. the red arrow points to the visible piece of the sfAccordion image.

I made the accordion based on the following link:
https://www.syncfusion.com/kb/11448/how-to-work-with-accordion-with-sflistview-in-xamarin-forms-sfaccordion


5 Replies 1 reply marked as answer

SP Sakthivel Palaniyappan Syncfusion Team November 2, 2020 10:39 AM UTC

Hi David,

Greetings from Syncfusion.

We have analyzed your query and checked the reported issue based on your provided information, but we could not able to replicate the issue. Please find the sample from below that we are tried to reproduce the issue.

Sample link:
https://www.syncfusion.com/downloads/support/directtrac/general/ze/AccordionXamarin-919853430.zip

Could you please update the following details?
 
1.      Could you please check the issue with the attached sample and let us know whether it is reproduced or not? If the issue was not reproduced in this sample, please revert us by modifying the sample based on your application along with replication procedure or provide sample. 
2.      Update the Syncfusion and Xamarin.Forms NuGet version. 
This will be help us to investigate further and provide you a better solution at the earliest.

Regards,
Sakthivel P.
 



DA David November 2, 2020 01:17 PM UTC

Good afternoon, thanks for the answer, I could verify what the problem is, what happens is that I necessarily have to have an image above the tab and a button at the end, for which I am putting a stacklayout and inside I put the image in the tabview and the button. That's when the size is lost, is there a way to achieve this?


SP Sakthivel Palaniyappan Syncfusion Team November 3, 2020 02:33 PM UTC

Hi David,

Thanks for the update.

We have analyzed your query and you can resolve the reported issue by setting VerticalOptions as FillAndExpand to the SfTabView as like below code snippet.

XAML:

 
<StackLayout> 
    <Image Source="image6.jpg" Aspect="AspectFill" HeightRequest="250" Background="Red"/> 
     
    <tabView:SfTabView VerticalOptions="FillAndExpand" BackgroundColor="Aqua"> 
         
    </tabView:SfTabView> 
    <Button Clicked="Button_Clicked" Text="Click"/> 
</StackLayout> 

We created sample based on this, please find the sample from below.

Sample link:
https://www.syncfusion.com/downloads/support/directtrac/general/ze/ACCORD~2981380789.zip

If you are still facing same issue, please modify the sample with reported issue or provide code snippet of the issue. It will help us to provide better solution at the earliest.

Regards,
Sakthivel P.

 


Marked as answer

DA David November 12, 2020 08:27 PM UTC

Thank you very much for the help, I solved the problem by replacing the stacklayout with a grid.


MS Mugundhan Saravanan Syncfusion Team November 13, 2020 06:20 AM UTC

Hi David,

Thanks for the update.

We are glad to know that the reported issue has been resolved at your end. Please let us know if you have any other concern.

Regards,
Mugundhan S. 


Loader.
Up arrow icon