Difference between revisions of "HowTo:Inject UI into UBIK Studio"
| Line 8: | Line 8: | ||
===Goal=== | ===Goal=== | ||
The goal is to extend the existing user control list with the injected user control.<br> | The goal is to extend the existing user control list with the injected user control.<br> | ||
| − | + | The mentioned list pops up every time you drag an instance to a new window. | |
[[File:InjectedUserControl.png|thumb|left|735px|Extended user control list]] <br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br> | [[File:InjectedUserControl.png|thumb|left|735px|Extended user control list]] <br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br> | ||
| Line 21: | Line 21: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
5. The user control now has a property Description and Image.<br> | 5. The user control now has a property Description and Image.<br> | ||
| − | 6. Set the properties in | + | 6. Set the properties in the User Control's constructor. The image and description can be loaded directly from the .NET project's resources. These values will then be displayed in the User Control list. |
<syntaxhighlight lang="csharp"> | <syntaxhighlight lang="csharp"> | ||
public TestUserControl() | public TestUserControl() | ||
{ | { | ||
InitializeComponent(); | InitializeComponent(); | ||
| − | Description = | + | Description = Properties.Resources.Description; |
| − | Image = | + | Image = Properties.Resources.MyImage; |
} | } | ||
</syntaxhighlight> | </syntaxhighlight> | ||
| Line 59: | Line 59: | ||
6. When starting {{UBIK}} Studio the new button will show up in the tool bar.<br><br> | 6. When starting {{UBIK}} Studio the new button will show up in the tool bar.<br><br> | ||
<!-- DO NOT REMOVE THIS -->{{Template:HowTo/End}}<!-- DO NOT REMOVE THIS --> | <!-- DO NOT REMOVE THIS -->{{Template:HowTo/End}}<!-- DO NOT REMOVE THIS --> | ||
| + | |||
| + | =See also= | ||
| + | tbd. | ||
[[Category:How-To|Inject UI into UBIK Studio]] | [[Category:How-To|Inject UI into UBIK Studio]] | ||
Revision as of 06:18, 17 June 2026
Since version 5.2 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!
See also
tbd.

