private void GenerateAndAddGroupBoxKeyTipInformation(bool hide, string keys, FrameworkElement child, RibbonGroupBox groupBox) { var keyTipInformation = new KeyTipInformation(keys, child, hide || groupBox.State != RibbonGroupBoxState.Collapsed); // Add to list & visual children collections this.AddKeyTipInformationElement(keyTipInformation); this.LogDebug("Found KeyTipped RibbonGroupBox \"{0}\" with keys \"{1}\".", keyTipInformation.AssociatedElement, keyTipInformation.Keys); }
private void AddKeyTipInformationElement(KeyTipInformation keyTipInformation) { this.keyTipInformations.Add(keyTipInformation); this.AddVisualChild(keyTipInformation.KeyTip); }