Jump to: navigation, search

Inject UI into UBIK Studio


Revision as of 07:25, 16 June 2026 by DAK (Talk | contribs)

Wiki Under Construction Start.PNG

Since version 5.1 it is possible to inject UI into UBIK® Studio.
The injected UI can be displayed inside a User Control and or Window.
This article will help you to inject your UI!

[edit]

User Control

The existing User Control list can be extended to provide additional controls.

Extended user control list














Implementation

1. Paste your UserControl into your plugin solution.
2. Make your UserControl implements IUBIKEnvironmentControl and add the export.

[Export(typeof(IUBIKControl))]
public partial class TestUserControl: UserControl, IUBIKEnvironmentControl

3. The user control now has a property Description and Image.
4. Set the properties in the constructor of the User Control. The text of description and the image will show up in the User Control List.

  public TestUserControl()
  {
      InitializeComponent();
      Description = "test control";
      Image = image;
  }

5. After making the changes make sure to update the plugin in the injection folder.
6. When starting UBIK® Studio the new user control will show up in the list.

Window

A new button can be added to the UI and open the injected UI

Injected button