Themes

NuGet package: Beckhoff.TwinCAT.HMI.Plastic.Themes

Available from version 12.6.0

The NuGet package Beckhoff.TwinCAT.HMI.Plastic.Themes can be installed in the TwinCAT HMI project via the NuGet package management system.

It includes design adaptations of existing controls and classes that can be used in the TwinCAT HMI project.

Use of the Plastic design

To be able to use the design from the NuGet package in a TwinCAT HMI project, a theme with the name "Plastic" must first be created. To do this, perform the following steps:

1. Right-click on the folder "Themes" in the TwinCAT HMI project and add a new item.
2. Select the Theme option in the window that opens, assign the name "Plastic" and then click the Add button.
The theme named "Plastic" appears in the folder "Themes" and can be edited using the theme editor.

Use of class themes

To use class themes from the NuGet package, they must be inserted in the theme editor. This requires the following steps:

1. Open the Plastic.theme file in the theme editor.
2. Right-click on the tab Control Classes and select Create new Control Class.
3. Now add the following control classes to be able to use them in the project: inputbox_toggle_switch; SliderTab; Tiles; TilesHeadline
Now the control classes can be assigned to the controls via the property ClassNames.
Themes 1:

The added control classes are grayed out in the theme editor because they do not contain a definition. The definition of the previously added control classes via the theme editor is not necessary by using the Beckhoff.TwinCAT.HMI.Plastic.Themes NuGet package, because the package contains the definition.