internal void HandleItemClicked(object item) { DrillDownHelper driller = null; Company company = item as Company; if (company != null) { driller = new DrillDownHelper(company.Products, "ProductName", "CurrentPrice", "BarSeries", company.CompanyName); } Product product = item as Product; if (product != null) { driller = new DrillDownHelper(product.PricesInfo, "Year", "Price", "LineSeries", product.ProductName); } if (driller != null) { this.DrillDownHelper = driller; this.drillDownLevel++; this.SyncDrillersListWithIndex(); this.drillersList.Add(driller); this.UpdateDrillLevel(); } }
public MainViewModel() { Company company1 = CompanyDataProvider.GetCompany1Data(); Company company2 = CompanyDataProvider.GetCompany2Data(); Company company3 = CompanyDataProvider.GetCompany3Data(); this.Data = new List<Company> { company1, company2, company3 }; var driller = new DrillDownHelper(this.Data, "CompanyName", "Revenue", "BarSeries", ""); this.DrillDownHelper = driller; this.drillersList.Add(driller); this.drillDownLevel = 0; }
public MainViewModel() { Company company1 = CompanyDataProvider.GetCompany1Data(); Company company2 = CompanyDataProvider.GetCompany2Data(); Company company3 = CompanyDataProvider.GetCompany3Data(); this.Data = new List <Company> { company1, company2, company3 }; var driller = new DrillDownHelper(this.Data, "CompanyName", "Revenue", "BarSeries", ""); this.DrillDownHelper = driller; this.drillersList.Add(driller); this.drillDownLevel = 0; }
private static void OnDrillDownHelperChanged(DependencyObject target, DependencyPropertyChangedEventArgs args) { RadCartesianChart chart = target as RadCartesianChart; if (chart == null) { return; } chart.Series.Clear(); DrillDownHelper driller = args.NewValue as DrillDownHelper; if (driller == null) { return; } CategoricalSeries series = CreateSeries(driller.CatBinding, driller.ValBinding, driller.Data, driller.SeriesType); chart.Series.Add(series); }
public static void SetDrillDownHelper(DependencyObject obj, DrillDownHelper value) { obj.SetValue(DrillDownHelperProperty, value); }