public MainPage() { this.InitializeComponent(); thread = new RTIMUThread(); periodicTimer = new Timer(this.TimerCallback, null, 0, 500); CallmeBaby(); this.Loaded += MainPage_Loaded; // UltraSonic sonic = new UltraSonic(6, 5); // sonic.GetDistance() }