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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Item tapped detection - MVVM

Thread ID:

Created:

Updated:

Platform:

Replies:

144545 May 10,2019 05:55 PM UTC May 13,2019 08:44 AM UTC Xamarin.Forms 1
loading
Tags: SfRadialMenu
Ian
Asked On May 10, 2019 06:00 PM UTC

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

Muneesh Kumar G [Syncfusion]
Replied On 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.  
 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon