Hello there and Merry Christmas !!!
I am new to WPF and I am trying to build a text editor for a assembly language. The assembler provides me a two lists:
a list of errors
a list of warnings
My editor should have the ability to inport the contents of a file and display it in a text-panel. I want it to be similar to Visual Studio. Line numbers on the side. And a tabbed pane for the warning/error messages.
Each list element contains the line number as an Int and a String that contains the error/warning message. (It would be really cool if I could click on it in the tabbed pane and it would jump to that line and highlight it.)
How I said I am new to WPF, I don't know the control library and I don't have too much time to dig and get friendly with google.
So I would really appreciate it if someone could point me to at least the controls I need to develop my GUI.
My best regards,
John
Free one http://blog.bodurov.com/Wpf-Source-Code-Editor
All I has for you is two links:
CodeyProject
Commercial one (SandDock)
Our SyntaxEditor for WPF control was just released to the public last week. It is a syntax-highlighting code editor control similar to the Visual Studio 2010 editor. You can find more info about the control here:
www.actiprosoftware.com/Products/DotNet/WPF/SyntaxEditor/
Related
currently I'm working on building a GUI in C# and .NET using MS Visual Studio.
As a control element I added a button (a DevComponents.DotNetBar.ButtonItem) which consists of an icon and a short descriptive text:
However, I'd like to have icon and description vertically aligned rather than horizontally but havn't found a way to do so yet. Can anybody give me a clue?
Thanks a lot in advance.
Ok, I found it, I must have had overread it multiple times - sorry, for bothering you.
It's just the parameter 'ImagePosition' under 'Apperance' in the object properties.
For WPF/C# where are all the default code snippets for things like Dependency Properties (wpfdp) or Routed Commands (wpfrc). I couldn't find these snippets listed anywhere in Visual Studio.
For a dependency property, use propdp.
You can find out all available snippets easily if you're using visual studio 2017:
Type a letter, for example a.
Click on the last icon at the bottom of the Intellisense Window.
This displays all available snippets.
Personally, I think it's wise to learn c# if you're trying to learn wpf. WPF has a notoriously tricky learning curve and you will want all the help you can get in the process. C# developers are much more active blogging and posting samples than VB. It's way easier to find C# help. Certainly in my area of the world it's also way easier to find work using c# than vb.
There's a snippet manager.
Press Ctrl+K, Ctrl+B and you get a window up.
They are organised by language.
You can write your own fairly easily, although the support in standard vs is pretty limited.
Some people particularly like resharper for it's macro snippet support.
Roslyn supports refactoring and some prefer that route for complicated snippet-like functionality.
But anyhow, take a look in there.
Under c# do you not see the snippets?
If not this could be an install issue.
Maybe you installed just for VB initially if you're moving to c#.
And as Xanimax said. Set routed command aside for now. Learn MVVM and pick one of the nuget packages intended to give you a more convenient way to define commands. I like mvvmlight.
The keyboard commands are propdp and propa. If you need to find them otherwise type in CTRL - X and the Insert Snippet dialog will pop up and you will be given the list of keyboard snippets to insert via folders:
The two you are interested in are in the NetFX30 folder and not the Visual C# folder:
I have been trying to get my head around the SDK API for visual studio for a while now. The problem is I know what I want/need to do. However I can not find a code example or API documentation anywhere that allows me to do what I want :(
I know its possible just I cant find documentation to show how.
I want to add another sidebar ribbon for all open files similar to how the breakpoint works (And many test add-ins for VS, NCrunch comes to mind...) that is blank as standard but when clicked allows some logic to be run to add a comment on that line.
Once added a Icon will be then displayed on that line allowing you to click the icon to view/edit the left comment. (The storage of this etc. is not a problem with the implementation I am doing) I just really need to know how to tell the API to add a new ribbon/side thing and plumb in the required logic :/
If this isn't possible I also had the idea of highlighting the word and again a icon popping up but that seems even more annoying to implement hence why I chose the side option if it is at all possible :/
Thanks in Advance to anyone who helps :D
The "sidebar ribbon" is called an editor margin. See Editor Extension Points.
Implement an IWpfTextViewMargin interface to define a margin. You must
also implement the IWpfTextViewMarginProvider interface to create the
margin.
I'm using blend 4 and vs 2010 to develop a port of an app from iPad to Windows Desktop.
I have a pathlistbox with PathListBoxScrollBehavior attached like in the carousel tutorial showed by Microsoft in the presentation of PathListBoxUtils.
My path is a open path (a line) and I don't want a infinite carousel but a path list box that go through the items but stops when comes in the last or first item. Am I being clear?
Something similar to what exist is on ios (similar to the cover flow effect too)
http://www.youtube.com/watch?v=YIWDlnvHRLw&feature=related
I know there are ways to do that but I can't find it.
There are a check box called WrapItems. When unchecked your Path List Box won't spin infinitely.
There are some bugs to solve yet but are specific to my project.
Hope this solution helps you too.
Is there an easy way to make a number picker for windows phone 7 that is similar to the timepicker control? I want go have custom ranges of 0-99 : 0-59 . 0-9. Google, bing, and msdn seem to be very vague with information on the subject.
I found an article that describes exactly what I want to do here. Now my problem is that the article is old and if I type toolkit: in my XAML code, no suggestion comes up for a loopingselector. If I go into my toolbox, right click, choose items. There are no controls for a loopingselector or infinite list selector.
The source code also doesn't work. It gives a bunch of errors in the XAML file that I am unable to remedy.
I am kind of at a loss on what to do here.
I am using Visual Studio 2010 / c#4.0.
Thanks in advance
Make sure that you are using the right namespace. LoopingSelector is in Microsoft.Phone.Controls.Primitives namespace. So your xmlns should be something like:
xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls.Primitives;assembly=Microsoft.Phone.Controls.Toolkit"