first test-flight version
This commit is contained in:
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user