-1

I don't can change height of an object inside collectionView Xamarin, how to change height with c#?

2
  • Show your xaml, code?
    – o_w
    Apr 7, 2022 at 7:52
  • Set a HeightRequest value on the layout container inside your template
    – Jason
    Apr 7, 2022 at 13:14

1 Answer 1

0

You can bind the control's height with your objects like:

<CollectionView.ItemTemplate>
    <DataTemplate>
   <Button Text="{Binding btnText}"
HeightRequest="{Binding heightvalue}"/>
    </DataTemplate>
</CollectionView.ItemTemplate>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.