public override void BeforeSelection() { this.Children.Clear(); List <BrowserData> datas = this.Service.getNavBrowserDatas(); foreach (BrowserData data in datas) { NavBlock block = new NavBlock(data.name, NavigationToken.GetModifyViewToken(FunctionalitiesCode.REPORT_EDIT, data.oid)); block.AllowRemoveHandlersWhenDispose = true; block.Background = (SolidColorBrush) new BrushConverter().ConvertFrom("#555555"); this.Children.Add(block); } }
protected NavBlock BuildBlock(String title, NavigationToken token = null) { NavBlock block = new NavBlock(title, token); return(block); }