Centroid API 1.0.0
Centroid API for C# and VB.Net
Importing User Controls

Prerequisites:

Note: The StatusWindow control is currently not functioning, but it can still be built into any project. It will not update with information while the program is running.


Referencing the CncSkinningUserControls.dll file:

In the Solution Explorer, under your WPF project, right click on References and select Add Reference....



Choose Browse category, then click Browse... and navigate to the location of CentroidAPIUserControls.dll. Select it, then press OK.




Adding User Controls To Toolbox:

Right click on Toolbox Window, and select _Choose items...



Click Browse and navigate to where CentroidAPIUserControls.dll is stored. Click on it, and press Open



Press OK to add to Toolbox. You should now see the user controls in your Toolbox.




Adding User Controls To Your Design:

Click and drag the Controls from your Toolbox into your design.


Initializing Your Controls:

Replace "yourcontrol" in the code below with the name of your control.

public MainWindow()
{
InitializeComponent();
cnc12_pipe = new cncPipe();
yourcontrol.Pipe = cnc12_pipe;
}