Пример #1
0
 internal XamlCompletion(ICompletionSession session, ITrackingSpan trackingSpan, IClassificationType classType, CompletionType completionType, XamlCompletionProvider provider, ICodeAidMemberInfo memberInfo)
 {
     this.ApplicableTo       = trackingSpan;
     this.ClassificationType = classType;
     this.CompletionType     = completionType;
     this.completionMetadata = new XamlCompletion.CompletionMetadata(memberInfo, this.GetBrushFromCompletionType(this.CompletionType));
     this.Session            = session;
     this.Source             = (ICompletionProvider)provider;
 }
Пример #2
0
 public CompletionMetadata(ICodeAidMemberInfo memberInfo, ImageSource icon)
 {
     this            = new XamlCompletion.CompletionMetadata();
     this.MemberInfo = memberInfo;
     this.Icon       = icon;
 }