first test-flight version

This commit is contained in:
2022-03-03 15:10:36 +08:00
parent 9929eee056
commit 25191127f3
116 changed files with 1124 additions and 173 deletions

View File

@ -11,6 +11,7 @@ namespace Billing.UI
public ItemSelectPage(IEnumerable<T> source)
{
var iconConverter = new IconConverter();
var content = new ListView
{
ItemsSource = source,
@ -30,7 +31,7 @@ namespace Billing.UI
Aspect = Aspect.AspectFit,
VerticalOptions = LayoutOptions.Center
}
.Binding(Image.SourceProperty, "Icon"),
.Binding(Image.SourceProperty, "Icon", converter: iconConverter),
new Label
{
@ -51,11 +52,12 @@ namespace Billing.UI
Content = content;
}
private void List_ItemTapped(object sender, ItemTappedEventArgs e)
private async void List_ItemTapped(object sender, ItemTappedEventArgs e)
{
if (e.Item is T t)
{
ItemTapped?.Invoke(this, t);
await Navigation.PopAsync();
}
}
}