User Manual

Objects
or user controls for a PC. Controls developed in WPF can bind to a tag value in
iX Developer.
User controls and custom controls are supported in WPF.
7.9.1 WPFUserControls
A WPF user control can be described as a composition of different user interface
controls. Creating a WPF user control is similar to creating a window:
YouhaveaXAMLfileandC#classfileforausercontrol.
The class file extends the user control class, adding additional behavior and
properties.
The XAML file encapsulates the composing controls; styles, templates,
animations and whatever necessary for “Look & Feel”.
7.9.2 WPFCustomControls
WPF custom controls are more flexible, but are more complicated than a user
control, and require a profound understanding of the WPF user interface model.
A number of certain user interface controls, such as button, progress bar or
speedometer has to be extended.
The appearance of the custom control has to be defined in XAML, as the
custom control itself has no look.
Most of the controls in iX Developer are custom controls, which makes it po ssible
to restyle them to various different layouts without changing the code files; just the
XAML.
A rounded meter in different styles
7.9.3 CreatingaWPFUserControlwith
Tag Connection
The following example describes how to create a WPF user control that can be
connected to a tag.
Thecompletecodeisincludedattheendoftheexample.
202
BeijerElectronics, M AEN831P