I have a listview, within the list view I have an entry box. I want to run some code after the entry box becomes unfocused which I have got working with the xct event to command behavior, but I would like the command to receive the object from the listview that the entry is inside.
(sudo xaml)
<ListView Name = ReportGrid>
<DataTemplate>
<ViewCell>
<StackLayout>
<Entry Text="0.00" VerticalOptions="Center" FontSize="16" BackgroundColor="White" Margin="10, 0, 0, 0">
<Entry.Behaviors
<behaviors:EventToCommandBehavior EventName="Unfocused" Command="{Binding Source={Reference CountLocationTabView}, Path=BindingContext.QtyEntryUnfocused}"
CommandParameter="{Binding Source={Reference ReportGrid}, Path=SelectedItem}" />
</Entry.Behaviors>
</Entry>
<StackLayout/>
<ViewCell/>
<DataTemplate/>
<ListView/>
I have seen examples of this where events from the listview are turned into commands but what about the elements within? thanks in advance.