We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Item tapped detection - MVVM

Good day,

Kindly provide support in how to achieve the following:

Detecting Item tapped using Prism's MVVM pattern and Delegate command.

I used the following approach using Xamarin Forms on Android platform:

   
       
   

and
                                            EventName="ItemTapped"
                        Command="AEvent" />
               

with Viewmodel constructor

public SyncPageViewModel(INavigationService navigationService,
                                              IPageDialogService pageDialogService   )
            : base(navigationService)
{
...
}
        

resulting in the following error:

XLS0507    Type 'RadialMenuViewModel' is not usable as an object element because it is not public or does not define a public parameterless constructor or a type converter.   

Warm regards

Ian

1 Reply

MK Muneesh Kumar G Syncfusion Team May 13, 2019 08:44 AM UTC

Hi Ian, 
  
Greetings from Syncfusion,  
  
We currently do not have Command support for SfRadialMenuItem, and we have already logged a feature report for this requirement and this feature will be available in any of our upcoming release.   
   
  
We have prepared a simple sample and tried to meet your requirement with the view inside the SfRadialMenuItem. We have added the Command property for Label and accessed in the ViewModel. Please download the sample for reference from the following link.   
  
  
Please let us know if you have any other concern.  
  
Regards,  
Muneesh Kumar G.  
 


Loader.
Live Chat Icon For mobile
Up arrow icon