private void UserControl_Loaded(object sender, RoutedEventArgs e)
 {
     DataModel.SampleDataSource dataSource = this.DataContext as DataModel.SampleDataSource;
     if (dataSource != null)
     {
         double totalSales = dataSource.TotalSales / 1000;
         gauge.Value   = totalSales;
         runTotal.Text = totalSales.ToString();
     }
 }
 private void UserControl_Loaded(object sender, RoutedEventArgs e)
 {
     DataModel.SampleDataSource dataSource = this.DataContext as DataModel.SampleDataSource;
     if (dataSource != null)
     {
         gaugeConsole.Value = dataSource.TotalSalesConsole / 1000;
         gaugeDesktop.Value = dataSource.TotalSalesDesktop / 1000;
         gaugePhone.Value   = dataSource.TotalSalesPhone / 1000;
         gaugeTablet.Value  = dataSource.TotalSalesTablet / 1000;
         gaugeTV.Value      = dataSource.TotalSalesTV / 1000;
     }
 }