private void AddTokenSectionTabItem(string displayName, IList <ITokenDescription> tokenDescriptions) { var tabItem = new TokenSectionTabItem(displayName); TokenSectionTabs.Items.Add(tabItem); AddTokenInputControls(tabItem.InnerPanel, tokenDescriptions); }
private void AddContextTokensTab() { var tabItem = new TokenSectionTabItem("Context Tokens"); TokenSectionTabs.Items.Add(tabItem); foreach (var token in _initialTokens.OrderByDescending(t => t.Key)) { tabItem.InnerPanel.Children.Add(new TextBlock { Text = $"{token.Key}: {token.Value}", Foreground = (Brush)FindResource(VsBrushes.CaptionTextKey) }); } }