I made a custom skin for a spark button with both icon and label.
Now I want the icon source to be editable from the code once instantiated the button class.
Button Skin Class
Button Skin Definition:
Button Component definition:
the problem is: I don't get any change on my button.
No icon shows up.
It's like the imageDisplay in MetropoliMenuButtonBase has nothing to do with the imageDisplay image component in the skin.
Ho can I connect them?
thank you in advance
from the skin classs you can call hostComponent.icon icon has to be the property of the host component.
Since we dont have icon property extend the skin button. create a icon property for that extended button, create a skin class for this button(this button will be host component) nd from the skin clss you can hostComponent.icon to set the icon for this.
and the following section in the above link