Desktop Plugin

Develop drivers, line modules, and server/ desktop plugins.
Post Reply
x4Trace
Posts: 58
Joined: Fri Feb 14, 2025 2:24 pm

Desktop Plugin

Post by x4Trace »

Customizable GUI plugins of x4Trace.

You can find samples in the x4Trace.Desktop.Plugins.User.csproj.

This project is prepared to build/develop a new plugin.
You can develop your own Plugin for this project. Please create a new "cs" file and not modify an existing plugin. However, you can copy the code into a new file.
Your x4Trace Desktop version uses these plugins, and modifying and building them can cause x4Trace to malfunction.

Important: You must register your Plugin in the x4Trace system. You have to place your code in the PluginController.Initialize method. "this.pluginManager.AddPlugin(typeof(YourClassName));"

The name of the line module must be unique!
The name is the module's ID in x4Trace. When a module loads, it is identified by this.
The visible name is the name of the Plugin on the GUI.

To create a new Plugin add a UserControl and change the inherit to Ix4Trace.Desktop.Plugins.DesktopPlugin or Ix4Trace.Desktop.Plugins.ExtendedPlugin.

The editing of this Plugin is the same as the editing of a standard Windows form.

To reach the x4Trace functions, use the controller and plugin manager object of the Plugin.
Post Reply