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
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.
