Is there any API Doc for Keysight.OpenTap.Wpf

Is there any API documentation for Keysight.OpenTap.Wpf.dll other than the examples in SDK\Examples?

Hi @laihesheng,

Unfortunately, there is currently no documentation apart from the examples.

Do you have any specific topics you’d like to know about?

Thank you for your reply.

I originally intended to use this dll to build a GUI, but now I am learning the code examples of OpenTAP.TUI

Got it. Looking at TUI is definitely a good way to learn about everything related to writing a GUI for OpenTAP.

For increased ease of development I’d suggest making it a plugin for tap.exe is so you can start it by writing

tap.exe myGui

This way you don’t need to initialize logging, plugin discovery etc.

Well, I have a new question: how to debug TUI code in VS? The breakpoints I set don’t take effect after launching the program.

I don’t have any problems debugging the TUI project myself in vs code:

Did you make any changes to the code? What platform are you on?

The code I downloaded from GitHub showed a “Terminal.Gui project not found” prompt. Therefore, I found and referenced Terminal.Gui.dll on my own, with no other modifications made beyond this.

Ok, I get it now. I though you were using VS Code.

That is probably because you are compiling a .netstandard project, so VS does not correctly detect that it should be using the .net framework debugger and instead uses the .net core debugger. If you change the project to target framework “net48”, it should work.

Regarding Terminal.Gui

That is because Terminal.Gui comes from the gui.cs submodule folder.

I believe you have to run:

git submodule update --init --recursive

from the TUI source folder.

1 Like

Thanks a lot, it works normally now.