Hi I'm not sure if this is the proper thread to put this question, but I'll give it a go anyway.
I have a SurfaceListBox with a control template that uses Effect.DropShadowEffect on it’s border. Some of the content is a third party control, that gets too much overhead using this effect. What I want is to only have this effect on the border of
the listbox, and not it’s content. I’ve tried to set the BlurRadius etc to 0, but it doesn’t help on the performance.
Is there really no way to completely remove the inherited effects in WPF?
My hack solution to the problem was to pull the border out of the controltemplate, and then just drawing the listbox on top of it. This doesn’t look so good, as the content will not appear to be under the borders shadow. Which brings me to question
number two, is there an elegant way to route events from my border/control to the listbox if I place it under the border/control? To be specific my listbox implements a surfacescrollviewer with a panel, and I want the listbox to receive drop, touchdown, touchmove
and etc events.