Changes
[[File:InjectedButton.png|thumb|left|290px|Injected button]]<br><br><br><br><br><br><br><br><br><br><br>
=== Implementation ===
1. Paste your Create or reuse a .Net library (DLL) project - it doesn't have to be a {{UBIK}} Module.<br>2. Add the designated window as a class deriving from System.Windows.Window in to the plugin solutionproject.<br>23. Create a new class that implements .<br>4. Implement the inferface IUBIKWindowFactoryfor the new class.<br>5. For automatic injection, add the "Export" Attribute with the "IUBIKWindowFactory" type parameter to the designated class.<br>
<syntaxhighlight lang="csharp">
[Export(typeof(IUBIKWindowFactory))]
public class TestWindowFactory : IUBIKWindowFactory
{
public Bitmap Icon => ImageProperties.Resources.IntelligentAtelierImage;
public string Label => "Test"Properties.Resources.IntelligentAtelierLabel;
public Window GetWindow(UBIKEnvironment env)
}
</syntaxhighlight>
<!-- DO NOT REMOVE THIS -->{{Template:HowTo/End}}<!-- DO NOT REMOVE THIS -->
