private void SelectItem()
 {
     _item = _signatureHelp.Items[_selectedIndex];
     var panel = new StackPanel
     {
         Orientation = Orientation.Horizontal,
         Children =
         {
             ToTextBlock(_item.PrefixDisplayParts),
         }
     };
     if (_item.Parameters != null)
     {
         for (int index = 0; index < _item.Parameters.Length; index++)
         {
             var param = _item.Parameters[index];
             panel.Children.Add(ToTextBlock(param.DisplayParts));
             if (index != _item.Parameters.Length - 1)
             {
                 panel.Children.Add(ToTextBlock(_item.SeparatorDisplayParts));
             }
         }
     }
     panel.Children.Add(ToTextBlock(_item.SuffixDisplayParts));
     CurrentHeader = panel;
     CurrentContent = ToTextBlock(_item.DocumenationFactory(CancellationToken.None));
 }
Ejemplo n.º 2
0
 public SignatureHelpItemEventArgs(SignatureHelpItem signatureHelpItem)
 => this.SignatureHelpItem = signatureHelpItem;
 public SignatureHelpItemEventArgs(SignatureHelpItem signatureHelpItem)
 {
     this.SignatureHelpItem = signatureHelpItem;
 }