|
@@ -87,6 +87,18 @@ namespace InABox.Mobile
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ public static readonly BindableProperty EmptyTextProperty = BindableProperty.Create(
|
|
|
+ nameof(EmptyText),
|
|
|
+ typeof(string),
|
|
|
+ typeof(MobileList),
|
|
|
+ "No Data Available");
|
|
|
+
|
|
|
+ public string EmptyText
|
|
|
+ {
|
|
|
+ get => (string)GetValue(EmptyTextProperty);
|
|
|
+ set => SetValue(EmptyTextProperty,value);
|
|
|
+ }
|
|
|
+
|
|
|
private void UpdateSummaryRow()
|
|
|
{
|
|
|
Device.BeginInvokeOnMainThread(() =>
|
|
@@ -97,7 +109,7 @@ namespace InABox.Mobile
|
|
|
int count = (ItemsSource as IList)?.Count ?? 0;
|
|
|
_numrecords.Text = $"{count} record{(count == 1 ? "" : "s")}";
|
|
|
_numrecords.IsVisible = ShowRecordCount && ItemsSource is IList;
|
|
|
- _refreshcard.IsVisible = _lastupdate.IsVisible || _pulltorefresh.IsVisible || _numrecords.IsVisible;
|
|
|
+ _refreshcard.IsVisible = /*_lastupdate.IsVisible || */ _pulltorefresh.IsVisible || _numrecords.IsVisible;
|
|
|
_emptylist.IsVisible = !ShowRecordCount;
|
|
|
});
|
|
|
}
|