Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 91519

Open picker on Listview itemtapped event in xamarin forms

$
0
0

I want to Open picker list (picker.focus()) whenever I click on Frame.
I am using Xamarin forms with Prism Framework.

I have tried with below code but getting item object , not picker object.
<ListView.Behaviors>

                        <behavior:EventToCommandBehavior
                            EventName="ItemTapped"
                            Command="{Binding ApplyLeaveInfoCommand}"

                            EventArgsParameterPath="Item"/>

                    </ListView.Behaviors>

So Can I get picker.focus() after click on listview Item ???

Complete code:-


<ListView.ItemTemplate>





<Grid.RowDefinitions>


</Grid.RowDefinitions>
<Grid.ColumnDefinitions>


</Grid.ColumnDefinitions>

                                            <Image Source="{Binding ImageSource}" Aspect="AspectFit" Grid.Row="0" Grid.Column="1" Grid.RowSpan="2" VerticalOptions="CenterAndExpand" />
                                        </Grid><Frame.GestureRecognizers>
                                            <ClickGestureRecognizer Command="{Binding ApplyLeaveInfoCommand}"
                                                                    CommandParameter="{Binding .}"
                                                                    /></Frame.GestureRecognizers>
                        </Frame>
            </StackLayout>
                            </ViewCell>
                        </DataTemplate>
                    </ListView.ItemTemplate>


Viewing all articles
Browse latest Browse all 91519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>