public MainPage() { InitializeComponent(); pb = new PostEventHub(); // Sample code to localize the ApplicationBar //BuildLocalizedApplicationBar(); if (!Accelerometer.IsSupported || !Gyroscope.IsSupported) { MessageBox.Show("device does not support accelerometer or gyroscope!"); } }
public MotionPage() { InitializeComponent(); pb1 = new PostEventHub(); }