void MainPage_Loaded(object sender, RoutedEventArgs e)
        {
            Monitor = new SystemMetricsMonitor();

            Monitor.DeviceUseModeChanged      += Monitor_DeviceUseModeChanged;
            Monitor.DeviceDockedStatusChanged += Monitor_DeviceDockedStatusChanged;

            Monitor.Start(TimeSpan.FromMilliseconds(1000));
        }
        void MainPage_Loaded(object sender, RoutedEventArgs e)
        {


            Monitor = new SystemMetricsMonitor();

            Monitor.DeviceUseModeChanged += Monitor_DeviceUseModeChanged;
            Monitor.DeviceDockedStatusChanged += Monitor_DeviceDockedStatusChanged;

            Monitor.Start(TimeSpan.FromMilliseconds(1000));
        }