0

リストビューがあり、リストビュー内に入力ボックスがあります。エントリボックスがフォーカスされなくなった後にコードを実行したいのですが、xctイベントからコマンドへの動作を操作していますが、コマンドがエントリが含まれているリストビューからオブジェクトを受け取るようにしたいと考えています。

(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/>

リストビューからのイベントがコマンドに変換される例を見てきましたが、その中の要素はどうでしょうか? 前もって感謝します。

4

1 に答える 1