private void OnNavigationPageLoaded(object sender, RoutedEventArgs e) { _vm = (HeatmapViewModel)this.DataContext; if (_vm.Description == null) { _vm.Description = AppStrings.Market_Description; _vm.SelectedIndustry = AppStrings.Company_Summary_Info; _vm.AddTreemapFilter(AppStrings.DataColumn_Change, "ChangeValue", -7, +7); _vm.AddTreemapFilter(AppStrings.DataColumn_P_E, "PEValue", -10, 40); _vm.AddTreemapFilter(AppStrings.DataColumn_ROE, "ROEValue", -10, 40); _vm.AddTreemapFilter(AppStrings.DataColumn_Div_Yield, "DivYieldValue", -10, 10); _vm.AddTreemapFilter(AppStrings.DataColumn_Price_to_Book, "PriceToBookValue", -15, +15); _vm.AddTreemapFilter(AppStrings.DataColumn_Net_Profit_Margin, "NetProfitMarginValue", -50, +50); _vm.AddTreemapFilter(AppStrings.DataColumn_Price_to_Free_Cash_Flow, "PriceToFreeCashFlowValue", -100, +100); } _vm.InitializeTreemap(Treemap); _vm.PropertyChanged += OnViewModelPropertyChanged; this.BusyIndicator.Visibility = _vm.IsInitialDataLoading ? Visibility.Visible : Visibility.Collapsed; }
void HeatMapChart_Loaded(object sender, RoutedEventArgs e) { _vm.InitializeTreemap(Treemap); }