Unsearchable styles

Good morning,

I created a compound widget containing a label, I associated the label style to a bindableproperty of the compound widget.

		<Property xsi:type="BindableProperty" name="LabelStyle" type="StyleReference" category="data" readOnly="false" required="false" defaultValue="SafetyTextGreen">
			<Mappings>
				<Mapping widget="Cams" property="style" mode="oneWay"/>
			</Mappings>
		</Property>

but when I try to insert the style from the graphic editor using the drop-down menu with the search bar, I don’t get any suggestions as if it didn’t find the styles. Even if then if I go to write the style by hand, the label actually changes according to the style

Hi Marco,

did you check the typeRefId property of BindableProperty?

There you can define for which type of widget you want to show styles in property window.

See help:
B&R Online Help

Sincerly Simon :slight_smile:

1 Like