Is there an easy way to make a code TextBox?
I'm trying to make my own limited/specialized version of XAMLPad.
Displaying the current XAML object tree in the top display is simple enough, using XamlReader.Parse() ... But I'd like the actual XAML code in the bottom window to show up in its appropriate colors.
Here is an example of something similar to what I want.
(source: usefulfreeware.net)
The above example looks pretty authentic, with the little expander/collapser thingies on the left side as well as close-to-standard coloration of XAML tokens.
I believe that this doesn't have to be created from scratch, so I'm asking SO if anyone knows where I might find automated support for this type of "code" display.
Kaxaml uses ICSharpCode.TextEditor, the text editor component from SharpDevelop.
Have a look at sharpdevelop - we use it for an internal iron python editor
Related
In my VS Code extension, I am using a TreeView to display some metrics, where each TreeItem has a 'name' and 'value'. I can easily display the data like this (ignore the miss-alignment):
But I'd really like to force the 'value' to be right justified in the pane like this example from the debugger
Does anyone know how to achieve this result?
After looking at the code for the Call Stack view, it seems that it is not a treeView at all but built with custom HTML.
So I guess the answer to this question is: "you can't"
For a custom language I created a CompletionContributor. Everything works fine. But I'm limited to the information I can display (only in the list or the bottom "advertisement" and only 1 line).
When trying to auto-complete on a java class name it will display more information on the selected line in a small side window. I would like to exploit that mechanism but I really don't know how it is done.
When looking at the options provided, I can use a custom LookupElementRenderer but there is no method in LookupElementPresentation related to the right window.
Any idea how it is done?
Are you referring to documentation popup which may be displayed if the corresponding setting (Setting->Editor->General->Code completion->Show the documentation popup in) is turned on?
If you want the feature to work for your language you have to use lang.documentationProvider extension point.
For some reason while I program in Microsoft Visual Basic 2010 Express OR VS Express for Desktop my controls seem to change style for an unknown reason.
This screenshot is in the DESIGN part of my programming:
And here is when I actually run the program:
I don't understand how it can change like that, I've tried changed properties on all the controls, but they just keep changing to whatever style that is...
I can update with more screenshots if need be.
Thanks
Answer given via a comment:
Using Application.EnableVisualStyles() Fixes the whole thing.
Thanks to #Plutonix for the answer!
LINQPad is great for quickly looking for results with its awesome "Dump" method.
However, when I am looking on a dictionary that holds an array (or an object), I see it like that:
To actually see the value in each row, I have to click "Value", which opens a new tab. I'd really like a way to see all the values expanded in one view.
Is that possible?
It is, but it requires some coding on your part.
You'll have to implement an extension for LINQPad, and in that extension implement the ICustomMemberProvider interface. You can just put this code right along in your assembly. If it is in the LINQPad namespace, LINQPad will pick it up and use it.
For more info, see the LINQPad FAQ at http://www.linqpad.net/FAQ.aspx
I found it what I was looking for. I had to switch to "Results to rich text" (CTRL+SHIFT+T). However, at that view I still couldn't see the values properly:
However, that turned out to be because I did .Dump(0) instead of just .Dump(). Wit that fixed, I was able to expand the dictionary and see the whole picture:
I need the columns Headers to be Stacked, like Header Cells Merged. The Same as in this image.
Please Refer to this link. It is done with C#. It does exactly what I need.
http://www.codeproject.com/Articles/474418/DataGridViewplus-e2-80-93plusStackedplusHeader
But the Problem is, Im working on vbproj and It cant include this C#.
I used some code converters and ended with some errors in raising events, etc.
Is there any way to get this in VB.NET
Or Is there any other way to make this stacked Headers??
This doesn't directly answer your question about conversion, but the easiest solution is to keep the code in C# as a separate project, then add it as a project reference in your VB.NET project.