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

Pass enum value in command parameter

$
0
0

Hi,

How to pass enum value as command parameter and what would be command type in viewmodel. I am using Prism and passing enum value like below

CommandParameter="{x:Static localenum:GradeTypes.PreventiveStyle}"

my viewmodel property is

public DelegateCommand<GradeTypes> TapSubGradeCommand { get; set; }

after running my application crashes. always we need send command parameter as string or generic values in Prism.


Viewing all articles
Browse latest Browse all 91519

Trending Articles



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