Example #1
0
            public object Create()
            {
                var image = new Image
                {
                    Width  = 16,
                    Height = 16,
                    Source = Glyph.ToImageSource()
                };

                return(image);
            }
 public RoslynCompletionData(Document document, CompletionItem item, char?completionChar, SnippetManager snippetManager)
 {
     _document        = document;
     _item            = item;
     _completionChar  = completionChar;
     _snippetManager  = snippetManager;
     Text             = item.DisplayText;
     Content          = item.DisplayText;
     _glyph           = item.GetGlyph();
     _descriptionTask = new Lazy <Task>(RetrieveDescription);
     Image            = _glyph.ToImageSource();
 }
Example #3
0
 public SymbolGlyphDeferredContent(Glyph glyph)
 {
     Glyph = glyph;
 }