Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

ViewCell Collapsible/Hidden?

$
0
0

This is similar to https://forums.xamarin.com/discussion/43089/is-it-possible-to-remove-a-bound-label-if-it-is-empty but different enough I thought I should ask a separate question.

I have a TableView with various TableSections and ViewCells. One of those ViewCells contains a Button. I only want the button to show under certain circumstances so have bound the Button.IsVisible to a property. That works ok, the button is showing/hiding as required. However, the ViewCell is not adjusting height. I guess I want it to work like Visibility=Collapsed in WPF. There is ViewCell.Height property but its not bindable. There is no ViewCell.IsVisible property, which would have also done the trick. I have Tableview.HasUnevenRows set to true.

Any ideas?


Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>