Created
June 23, 2013 20:36
-
-
Save lohithgn/5846449 to your computer and use it in GitHub Desktop.
Main Page Code Behind
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public MainPage() | |
{ | |
InitializeComponent(); | |
this.Loaded += MainPage_Loaded; | |
} | |
void MainPage_Loaded(object sender, RoutedEventArgs e) | |
{ | |
ChartServiceClient client = new ChartServiceClient(); | |
client.GetTop10ProductsCompleted += client_GetTop10ProductsCompleted; | |
client.GetTop10ProductsAsync(); | |
} | |
void client_GetTop10ProductsCompleted(object sender, GetTop10ProductsCompletedEventArgs e) | |
{ | |
var data = e.Result; | |
this.chartView.Series[0].DataContext = data; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment