I am building a Xamarin.Forms application with Prism, it shows what Bluetooth devices are connected.
In this application, I need a footer in all the pages showing the connection status of the device.
To do that, I’ve made a static class called Pen with the property IsConnected updated from the BleService.
I also need a button in the footer that is visible when the Pen is disconnected and when it is pressed I can call the Connect method of the BleService.
For the footer, I’ve made a ControlTemplate in the App.xaml containing a button.
Now, I’m using Prism and I don’t know how to bind the button to a ViewModel (App.xaml does not have a ViewModel) in order to call the Connect Command of the BleService.
 
     
    