Firemonkey use StylesData to set property of array object in style


I try to set the property of an object when filling a ListBox with ListBoxItems. The object is an ellipse added to the style used by the ListBox. The line of code below raises an exception:

ListBoxItem.StylesData[‘ellipsestyle.fill.Gradient.Points.Points[0].Color’] := newAlphaColor;

As a workaround, I tried to reach the property by getting the ellipsestyle object with ListBoxItem.FindStyleRessource, but the function returns nil.

Thank you !

Comments are closed.