Jump to: navigation, search

Changes


HowTo:Inject UI into UBIK Studio

121 bytes added, Wednesday at 06:18
===Goal===
The goal is to extend the existing user control list with the injected user control.<br>
Every The mentioned list pops up every time you drag an instance to a new window, the mentioned list pops up.
[[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>
</syntaxhighlight>
5. The user control now has a property Description and Image.<br>
6. Set the properties in the constructor of the User Control's constructor. The text of description image and description can be loaded directly from the image .NET project's resources. These values will show up then be displayed in the User Control Listlist.
<syntaxhighlight lang="csharp">
public TestUserControl()
{
InitializeComponent();
Description = "test control"Properties.Resources.Description; Image = imageProperties.Resources.MyImage;
}
</syntaxhighlight>
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 -->
 
=See also=
tbd.
[[Category:How-To|Inject UI into UBIK Studio]]
283
edits