Jump to: navigation, search

Difference between revisions of "HowTo:Inject UI into UBIK Studio"


Line 1: Line 1:
 
{{UnderConstructionStart}}
 
{{UnderConstructionStart}}
  
Since version 5.1 it is possible to inject UI into {{UBIK}} Studio.
+
Since version 5.1 {{Version/ServerSince|5.1}} it is possible to inject UI into {{UBIK}} Studio.
 
The injected UI can be displayed inside a User Control and or Window.
 
The injected UI can be displayed inside a User Control and or Window.
  
Line 7: Line 7:
  
 
= User Control =
 
= User Control =
The existing User Control list can be extended to provide additional controls
+
The existing User Control list can be extended to provide additional controls.
 +
==== Implementation ====
 +
It is enough to add the following code to your UserControl
 +
 
 +
<syntaxhighlight lang="python">
 +
[Export(typeof(IUBIKControl))]
 +
public partial class CtrlAtelierHost : UserControl, IUBIKEnvironmentControl
 +
</syntaxhighlight>
 +
 
 
[[File:ControlDropDown.png|thumb|220px|Extended user control list]]
 
[[File:ControlDropDown.png|thumb|220px|Extended user control list]]
  

Revision as of 17:42, 15 June 2026

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.


[edit]

User Control

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

Implementation

It is enough to add the following code to your UserControl

[Export(typeof(IUBIKControl))]
public partial class CtrlAtelierHost : UserControl, IUBIKEnvironmentControl
Extended user control list


Window

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

Injected button