Exemplo n.º 1
0
        public CompassPage()
        {
            InitializeComponent();

            Compass.AddCallback(() =>
            {
                compassPicture.Rotation = Compass.heading;
            });

            updateTimer.Elapsed += (Object source, System.Timers.ElapsedEventArgs e) => { UpdatePage(); };
        }