protected async override void OnNavigatedTo(NavigationEventArgs e) { base.OnNavigatedTo(e); var esaData = await EsaDataManager.GetEsaDataAsync(); DataContext = esaData; }
public TorinoImpactHazardScaleViewPage() { InitializeComponent(); Loaded += async(s, e) => { var esaData = await EsaDataManager.GetEsaDataAsync(); DataContext = esaData; }; chart.SizeChanged += (s, e) => { DrawAnnotations(); }; }