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

How to make ViewCell.ContextActions conditional

$
0
0

I have ViewCell.ContaxtActions in my Listview, which has List of MenuItems like below

                    <ViewCell.ContextActions>
                      <MenuItem Clicked="OnEdit"          Text="{model:Translate Generic_Edit}"             />                         
                      <MenuItem Clicked="OnMulticalculus" Text="{model:Translate Generic_MultiCalculus}"    />
                    </ViewCell.ContextActions>

I would like to make menuitems visible on condition. For example, for certain condition, only edit menu should be visible and other menu should be invisible.

Can anyone help to make conditional Context menu in listview?

Thanks,
Vinu


Viewing all articles
Browse latest Browse all 77050

Trending Articles



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