Exercise 1: Integrating the Sensor API into a WPF Application
Task 1 – Prepare a WPF Project for Sensor Integration
Test your code to make sure it compiled.
Task 2 – Add Layout to the WPF Application
Sensor HOL basic Layout
In this task, you will design the MainWindow layout. It will contain 3 parts:
Task 3 – Add Image Specific Logic
In the previous task, you designed the layout of the application, now it is time to pour content into it.
Task 4 – Setting up the Sensor Helper
Task 5 – Integrating ViewModel and the Sensor Helper
Task 6 – Add Light Sensor Interaction with the UI
In the next task, we will make use of the light intensity sensor. Three separate elements will interact with it:
Task 7 – Add Accelerometer Sensor Interaction with the UI (Optional)
In this task, you will connect a 3D Accelerometer sensor to the UI. In addition to the accelerometer indicators on the left, the right part of the application rotates with each sensor movement.