
Lets say I have a gallery and each item in this gallery contains of BackgroundShape, ForegroundShape and TextBox (Look at the screenshot) .
Since this is considered one big complex control I want all of them to execute the same OnSelect() action. Which forces me to duplicate my function for BackgroundShape, ForegroundShape and TextBox. Can I somehow apply my function only to BackgroundShape and then use Parent.OnSelect for ForegroundShape and TextBox? How can I avoid code duplication in this case?
HI
Wish I understand your idea.
Why not, when within the gallery, insert a button, make the color fill as null and set the function into OnSelect.
Place this button overlapping on top of all the 3 shapes?
Hope I understand what you want.
Have a nice day.