Hi, everyone I need help for my problem. I am trying to bind the context from the viewmodel like this
<ContentPage.BindingContext> <viewModels:BLEConncetViewModel/> </ContentPage.BindingContext>
and also I have a constructor inside my view model that it have some parameters on it, here its starts the problem because when I try to bind it appears this message Type 'Type BLEConnectViewModel' is not usable as an object element because is not public or does not define a public parameterless constructor or a type converter. No default constructor found.
And the constructor is like this: I am using Prism container.
public BLEConncetViewModel(INavigationService navigationService, IAdapter btAdapter)
_navigationService = navigationService;
_btAdapter = btAdapter;
_btAdapter.DeviceDiscovered += OnDeviceDiscovered;
OnClickCommand = new DelegateCommand(OnClick);