Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

242
Views
¿Cómo puedo cambiar la altura en ViewCell?

Estoy tratando de cambiar ViewCell en listview, pero el siguiente código no funciona para mí:

 <DataTemplate> <ViewCell Height="100"> <StackLayout Orientation="Horizontal"> <Image Source="{Binding Seller.Thumbnail}}" Aspect="AspectFit" /> <StackLayout Orientation="Vertical" > <Label Text="{Binding CouponName}" FontAttributes="Bold" FontSize="12" /> <Label Text="{Binding EndOffer}" FontSize="11" /> </StackLayout> </StackLayout> </ViewCell> </DataTemplate>
over 4 years ago · Santiago Trujillo
3 answers
Answer question

0

  • Si todas las celdas tienen el mismo tamaño, establezca la propiedad ListView.RowHeight en ListView.
  • Si desea establecer ViewCell.Height en su lugar, establezca ListView.HasUnevenRows en true (pero tiene cierto impacto en el rendimiento)
over 4 years ago · Santiago Trujillo Report

0

Lo correcto ahora en 2019 es poner esto para altura fija:

 <ListView RowHeight="100" />

Si no desea corregir la altura en todas las filas, use:

 <ListView HasUnevenRows="true" />
over 4 years ago · Santiago Trujillo Report

0

Establecer la height para ViewCell funcionará solo si la propiedad ListView.HasUnevenRows o TableView.HasUnevenRows se establece en true .

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!