BoldDeskWe are launching BoldDesk on Product Hunt soon. Learn more & follow us.
<sflistview:SfListView ItemsSource="{Binding Info}"
AutoFitMode="DynamicHeight"> |
public class ExtendedListView : SfListView
{
VisualContainer container;
public ExtendedListView()
{
container = this.GetVisualContainer();
container.PropertyChanged += Container_PropertyChanged;
}
private void Container_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
{
if (e.PropertyName == nameof(Height))
{
var extent = (double)container.GetType().GetRuntimeProperties().FirstOrDefault(container => container.Name == "TotalExtent").GetValue(container);
this.HeightRequest = extent;
}
}
} |